"firstChild"
The attribute "firstChild returns the Child ID and type for the specified item (item ID) of a cascade.
Synopsis
getValue(string shape,"firstChild",string itemID, string &childID, int
&type);
shape.firstChild(string itemID, string &childID, int
&type);
Parameters
| Parameter | Description |
|---|---|
| shape | Name of the graphics object |
| itemID | Item ID. Specify the ID of the item whose child ID and type you want to retrieve. |
| childID | Child ID (Return value) |
| type |
Type (Return value) CB_ITEM = 0 Item CB_POPUP = 1 Popup (sub menu) CB_SEPARATOR = 2 Separator |
Description
The attribute "firstChild returns the child ID and type for the specified item (item ID).
In the example below, the child ID and type are returned for the item with the ID 1.
main(string id)
{
string i,j;
i = "1";
string obj = "CASCADE_BUTTON1";
int t;
getValue(obj, "firstChild",i,j,t);
DebugN("ITEM ID",i, " CHILD ID", j, " TYPE", t);
}
Assignment
Cascade
Availability
UI
