GUI Classes Hierarchy

There are restrictions as to what sort of object each new object can belong to. For example, a button can only belong to a Menu, a Popup, a Dialog or a Bulletin.

The following tables list each container object and their valid children:

Panel - valid children

Panel
Canvas Command Dialog Menubar Popup Toolbar

Note: Only one child of each object class is allowed except for Toolbar (2) and Dialog (N)

Menubar and Toolbar - valid children

Toolbar
Icon Popup
Menubar
Menu Popup

Menu and Popup - valid children

Menu or Popup
Button Label Separator Switch Menu Popup

Bulletin and Dialog - valid children

Bulletin or Dialog
Button Combobox Label Separator Switch Text Bulletin Menubar Popup Toolbar

Note: A Dialog parent allows only one of each object class except Button (N). To add more objects to a dialog, add a Bulletin object or set XuNguiDialogType to "bulletinBoard''. When a Menubar is added to a dialog, it can only be a child of the Dialog class, not a Bulletin class child.

Carry on to A simple example