object = wnd.dlgItem(dlgItemID);
Returns a wrapper object for the child control, identified by its control ID. The type of object returned depends on the control class, for example this property will return a button object if the control ID identifies a button control.
// Access controls on the dialog var Dialog = wnd.dialog; var PushBtn = Dialog.dlgItem(1013);// control ID of button "Push" PushBtn.push();