Table 17 - 5 details the attributes contained in the
Control class.
Figure 17-1
Table 17-3
Method Description
new( text : String ) : Void Acquires the textual value to initialize the Label control.
setHSeparator() : Void Converts the Label control to a horizontal divider.
setVSeparator() : Void Converts the Label control to a vertical divider.
Table 17-4
Variable Description
align : String Determines the alignment of the text ??” RIGHT, CENTER, or LEFT.
text : String Sets and gets the textual value of the Label control.
Table 17-5
Variable Description
bgColor : Int Sets the background color for the control.
fgColor : Int Sets the foreground color for the control.
active : Bool Determines its aesthetic state as either greyed out ( inactive) or full (active).
Table continued on following page
486
Part III: Extending the Possibilities
Thanks to the universal attributes as laid out in the Control class, you can now rewrite the previous
example to include many possible alterations to the Label control.
Pages:
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902