This object will then be added to
the dialog display and set as a child of that dialog. It is possible to add further controls to the dialog by
using the appendChild method of the Dialog class. However, under normal circumstances, only one
child will be appended: a container object. The reason for this is that the Dialog control does not
support any layout capabilities, so any objects you append to the dialog will simply line up one by one
horizontally. To remedy this, nGui provides several controls that do little else than organize the physical
positioning of controls. These positioning controls are themselves nestable objects; thus, they can be
combined to provide a desired look and feel when developing your GUI.
The layout container controls provided by nGui do not support absolute positioning of controls. The
reason for this is to facilitate resizing of the parent dialog or container object. By allowing controls to
position themselves based on alignment and padding, it should theoretically be easier to create a GUI
that looks pretty much the same regardless of the dimensions of the parent dialog.
Pages:
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905