PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Handling a sidebar pane
  • Changing the active pane
  • Finding out the active pane
  • WLanguage functions used to handle the sidebars
  • Properties specific to "Sidebar panes" controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Handling a Sidebar control by programming
Overview
WINDEV and WINDEV Mobile allow you to handle a Sidebar control by programming. To do so, use the variable of the Sidebar control in the code.
The variable of the Sidebar control corresponds to the number of the active pane. This variable is an integer.
Note: WINDEV and WINDEV Mobile automatically manage the move when a pane is clicked by the user.
Handling a sidebar pane
To handle a pane, use the following syntax:
SidebarName[PaneNumber]..PropertyName = PropertyValue
For example:
SIDE_MyBox[2]..State = Grayed
Changing the active pane
The pane 1 (the top pane) is enabled by default. You have the ability to change the current pane by programming.
To enable a sidebar pane:
  • Assign the tab with the number of the pane to enable:
    SidebarName = PaneNumber
  • Use ..Value.
The number is assigned during the description of the panes: in the list of panes, the first pane is number 1, the second pane is number 2...
Notes:
  • The displayed pane is not modified if the specified pane does not exit.
  • A single pane can be displayed on a sidebar.
  • When changing pane:
    • the exit code of the control with focus is run.
    • the entry code of the first editable control in the pane is enabled.
Finding out the active pane
To retrieve the number of the active pane:
  • perform a simple assignment. For example:
    NumActivePane = NameSidebarControl
  • use ..Value.
WLanguage functions used to handle the sidebars
The following functions are used to manage the characteristics of a sidebar control by programming.
ControlCloneClones a control by associating it with a pane in a Sidebar control.
EnumControlLists the controls associated with a sidebar.
EnumSubElementEnumerate the sidebar panes.
Properties specific to "Sidebar panes" controls
The following properties are used to manage the characteristics of a "pane" control by programming.
ImageAllows you to find out and modify the image associated with a sidebar pane.
To handle the pane, use the following notation: <SidebarName> [<Pane Subscript>].
OccurrenceAllows you to find out the number of sidebar panes.
To find out the entire list of WLanguage properties that can be used with a sidebar control, see Properties associated with a sidebar.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment