Positioning GUI ObjectsThe Bulletin object is a container which allows children to be positioned anywhere on it surface. Children of the Bulletin object are positioned using the XuNguiPosition resource which specifies, in X,Y pixel coordinates, the position of the top left corner of the child relative to the top left corner of the Bulletin. The default position is (0,0). If not explicitly set, children of a Bulletin object will be positioned on top of each other at this default location. A bulletin can be added to the work area of the Page Format dialog by
creating a bulletin child of the dialog parent. The bulletin will be automatically
placed in the work area of the dialog. The following code fragment from
gui_lesson4.gsa uses a bulletin as the container for two toggle switch
buttons. The buttons are positioned Example: gui_lesson4.gsa working with dialogs
The resulting dialog is shown in the figure below.
Pressing a toggle button selects the display mode of the page object, which can toggle between relative (scaled to fit the window), and absolute (a fullsize scrolled image). All GUI manager objects automatically perform geometry management (determine
size and position) of their children. The child positioning logic of manager
objects is summarized in the table below.
Carry on to Getting Information About the GUI Hierarchy |