|
|
|
|
|
gpwEnumControl (Function) In french: gpwEnumèreChamp
Warning
From version 25, this function is kept for backward compatibility. It is recommended to use EnumControl, which offers more possibilities..
Enumerates the controls found in a window or page. Remarks: - This function is used by the user groupware to enumerate the controls whose status (invisible, grayed, inactive) can be modified by the user groupware.
- This function can be used even if the User Groupware is not enabled in the project.
PROCÉDURE EnumChildControl(sParentName is string)  // Browse the controls nIndex is int = 1 sNameChildControl is string sControlInfo is string = gpwEnumControl(sParentName, nIndex) WHILE sControlInfo <> "" Trace(sControlInfo) // Retrieve the full name of the child control sNameChildControl = ExtractString(sControlInfo, 1, TAB) Trace(sNameChildControl) // Next control nIndex++ sControlInfo = gpwEnumControl(sParentName, nIndex) END Syntax
<Result> = gpwEnumControl(<Parent element> , <Index>)
<Result>: Character string - Characteristics of control found. These characteristics have the following format:
<Full control name> + TAB + <Full parent name> + TAB + ... <Type> + TAB + <Plain type> + TAB + <Caption> where: - <Full control name>: Full name of the control found.
- <Full parent name>: Full name of control parent (empty string for a window).
- <Type>: identifier of control type (Type).
- <Plain type>: Readable control type (for example, "Button", "Scrollbar", ...).
- <Caption>: Control caption.
- "" (empty string) if the enumeration is ended.
<Parent element>: Character string Name of the "parent" object (containing the control). This parameter corresponds to the name of a window or page. <Index>: Integer Index of the control to enumerate. Each control is associated with a number. This number corresponds to the order in which the controls have been created.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|