For example, you could modify the
color of the control and provide a tooltip when the mouse arrow is hovering over the control:
import nGui.Manager;
import nGui.controls.containers.VBox;
import nGui.controls.containers.Dialog;
import nGui.controls.Label;
class StaticColor
{
public static function main()
{
var bs = new StaticColor();
}
public function new()
{
var mng = new Manager();
var vbox = new VBox();
var lbl1 = new Label( ???This is the nGui label control??? );
var lbl2 = new Label( ???How is this label aligned???? );
var lbl3 = new Label( ?????? );
var lbl4 = new Label( ???This is inactive??? );
lbl1.fgColor = 0xFFFF00;
lbl1.bgColor = 0x0000FF;
lbl2.align = ???RIGHT???;
lbl2.expand = true;
lbl2.fgColor = 0xFF0000;
lbl2.bgColor = 0x00FFFF;
lbl2.tip = ???To the right, of course!???;
lbl4.active = false;
lbl3.fgColor = 0x00FF00;
lbl3.bgColor = 0xFF00FF;
lbl3.setHSeparator();
lbl4.fgColor = 0x0000FF;
lbl4.bgColor = 0xFFFF00;
Variable Description
expand : Bool Expands the width and/or height bounds of the control to its parent width
and/or height.
Pages:
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903