However, as controls
are rarely of the same dimensions, it ??™ s possible that grouped controls may not sit perfectly alongside one
another where you ??™ d most like them. In the previous example, it would be more important for each label
control to sit vertically level with its paired text field. This is more likely to happen in the layout on the
right, where the HBox controls enforce vertical alignment, albeit with a possible misalignment between
rows for the left - hand side of each text field. In this circumstance, however, this can be rectified by
setting a width parameter for the Label controls, thus providing no reason for the divider between cells
to deviate.
Working with Interactive Controls and Events
The interactive controls in nGui include buttons, text fields, combo boxes, menus, and radio buttons.
Each of these controls extends the Control class and exists to provide the functionality of your GUI. The
major differing factor between interactive and static controls is that the interactive controls fire events
when the user interacts with them.
Pages:
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907