Finding the widgets
The widgets already added to simulation can be retrieved by their name (must be set in property table) using one of following function
1. gui.find(name);
name
returns the first component from the root desktop by a specified
2. gui.find(parentObject,name) value
parent
returns the first child component for the
name by a specified
value
//get dialog object in simulation having name "dialog1" var dlg=gui.find("dialog1"); //get button object in this dialog object having name "button1" gui.find(dlg,button1);