_qres::Enumerate_Sysgui_Controls - Get All Controls for a Given Context
Syntax
call "_qres::Enumerate_Sysgui_Controls",sysgui,context_id,control_list$,
status,errmsg$
Description
This routine returns a list of all controls on the specified context.
Parameter |
Description |
sysgui |
The channel that the SYSGUI device is opened on. |
context_id |
The context of a top level window on which the target controls reside. |
control_list$ |
Returns a string that contains a list of all the controls on the specific top level context. Each control will have an entry that contains the type of control (as specified in CTRL(4)) Window ID with full genealogy of its parent (excluding the top level Form ID that is not available at runtime), control name, Control ID, and x, y, w, h. Each control segment can be interpreted using following template: |
status |
Returns 1 for successful operation and 0 for unsuccessful operation. |
errmsg$ |
Returns a description of the problems encountered. |
This routine does not check for enough memory to get the window information (WININFO). An !ERROR=31may result in cases where the window being evaluated is complex and contains many controls.