PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Enumerating the panes in a Tab or Ribbon control
  • Enumerating the panes of a Sidebar control
  • Limit
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
EnumSubElement (Function)
In french: EnumèreSousElément
Enumerates the subelements of a project element. This function can be run even if the element is not opened.
In a loop, this function can be used to enumerate the controls found in a window (or in a page) of a project.
Remark: This function cannot be used on the reports or on the queries.
WINDEVReports and QueriesUser code (UMC)
[%00000041%]
[%00000042%]
[%00000043%]
[%00000044%]
[%00000045%]
[%00000046%]
[%00000047%]
[%00000048%]
[%00000049%]
WINDEVReports and QueriesUser code (UMC)
[%00000051%]
[%00000052%]
[%00000053%]
 
[%00000054%]
[%00000055%]
[%00000056%]
[%00000057%]
[%00000058%]
[%00000059%]
WEBDEV - Server codeAjax
[%00000061%]
[%00000062%]
[%00000063%]
[%00000064%]
[%00000065%]
[%00000066%]
[%00000067%]
[%00000068%]
[%00000069%]
WINDEVReports and QueriesUser code (UMC)
[%00000071%]
[%00000072%].
[%00000073%]
[%00000074%]
[%00000075%]
 
[%00000076%]
[%00000077%]
[%00000078%]
[%00000079%]
 
[%00000080%]
[%00000081%] ...
[%00000082%]
[%00000083%]
[%00000084%]
[%00000085%]
[%00000086%]
[%00000087%]
[%00000088%]
[%00000089%], ...
[%00000090%]
[%00000091%]
[%00000092%]
 
[%00000093%]
[%00000094%]
[%00000095%]
Syntax
<Result> = EnumSubElement(<Element> [, <Option>])
<Result>: Character string
  • Full name of the element found (<Window/Page name>.<Control name> for example),
  • Empty string ("") if no element was found.
<Element>: Character string
Full name of element to enumerate. For a control, this parameter has the following format: <Window/Page name>.<Control name> ("MyWindow.MyTable" for example).
<Option>: Optional constant
Parameter that must be specified during the first call to the function (to start the enumeration). This parameter is not required to continue the enumeration.
enumSideBarEnumerates the panes found in a sidebar.
WEBDEV - Server code This constant is not available.
enumGroupEnumerates the groups found in a window or in a page
enumContextualMenuEnumerates the popup menus found in a window.
WEBDEV - Server code This constant is not available.
enumMainMenuEnumerates the drop-down menus found in a window. You can also use EnumMenu.
WEBDEV - Server code This constant is not available.
enumFirstStarts the enumeration
enumPaneEnumerates the panes in a Tab or Ribbon control.
WEBDEV - Server code This constant is not available.

Caution: to start the navigation, use the following combinations:
  • enumFirst to enumerate the controls found in a window or in a page.
  • enumFirst + enumGroup to enumerate the groups in a window or page.
  • enumFirst + enumPane to enumerate the panes in a Tab or Ribbon control.
  • enumFirst + enumContextualMenu to enumerate context menus.
  • enumFirst + enumSideBar to enumerate the panes in a Sidebar control.
  • enumFirst + enumMainMenu to enumerate the main menus of a window or page.
Remarks
WINDEVReports and QueriesUser code (UMC)

Enumerating the panes in a Tab or Ribbon control

By default, when EnumSubElement is used on a Tab control, all the controls of all the panes are enumerated without displaying each pane.
If the enumPane constant is used, EnumSubElement enumerates the tab panes (but not the controls contained in those panes). The result is of type "<n>", where <n> is the number of the tab pane. To get the text of the tab, use the Caption property.
To enumerate the controls of each tab pane, run an enumeration on the pane, specifying its number:
EnumSubElement("<window>.<tab>.<n>")
Remark: The Count property can be used to get the number of panes of a Tab control.
Example:
[%00000152%]
[%00000153%]
[%00000154%]
[%00000155%], ...
[%00000156%]
 
[%00000157%]
[%00000158%]
[%00000159%]
[%00000160%]
[%00000161%]
[%00000162%]
[%00000163%]
[%00000164%]
[%00000165%]
[%00000166%]
[%00000167%]
[%00000168%]
[%00000169%]
[%00000170%]
WINDEVReports and QueriesUser code (UMC)

Enumerating the panes of a Sidebar control

By default, when EnumSubElement is used on a Sidebar control, all the controls of all the panes are enumerated without displaying each pane.
When the enumSideBar constant is used, EnumSubElement enumerates all the tabs of the Sidebar control (but not the controls in the tabs). The result is of type "<n>.<caption>", where <n> is the number of the pane and <caption> is its caption.
To enumerate the controls of each tab in the Sidebar control, run an enumeration on the tab, specifying its number:
EnumSubElement("<Window/Page>.<SideBar>.<n>")

Limit

This function cannot be used to enumerate the sub-elements of an element found in a component.
Business / UI classification: Neutral code
Component: wd270gpu.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment