width : Int Determines the width of the control.
height : Int Determines the height of the control.
title : String Element??™s title. It is often used to modify some static text of the element.
value : String Often used to change a control??™s main value.
tip : String Determines the tooltip for the control.
visible : Bool Determines the visibility of the control.
Chapter 17: Desktop Applications with Neko
487
vbox.appendChild( lbl1 );
vbox.appendChild( lbl2 );
vbox.appendChild( lbl3 );
vbox.appendChild( lbl4 );
var win : Dialog = new Dialog( vbox );
win.show();
mng.loop();
mng.close();
}
}
Container Classes
Aside from utility dialogs, such as the file selector and message box, the nGui library provides only a
single class, called Dialog , for displaying controls. This dialog represents a standard window object, but
can be customized to suit the style of window you require, providing such alterations are set before the
window is first shown.
var dialog = new Dialog( control );
Upon creation of the dialog, an object must be passed as a parameter.
Pages:
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904