tabTitle( ???Three??? );
var tabs : Tabs = new Tabs( arr );
tabs.position = ???BOTTOM???;
tabs.onChange = function ( newTab : String, oldTab : String )
{
neko.Lib.println( ???The new tab is : ??? + newTab );
neko.Lib.println( ???The old tab is : ??? + oldTab );
return tabs.RTToInt( DEFAULT );
}
var wind : Dialog = new Dialog( tabs );
wind.setSize( ???200???, ???40??? );
wind.title = ???Tabbed Sample???;
wind.show();
mng.loop();
}
}
Working with Menus
The final control available in nGui for discussion is the Menu control. Menus in nGui are only applicable
to the Dialog control, and at present, there is no support for context menus relative to individual
controls. However, this may change as the nGui library matures.
(continued)
Figure 17-6
Chapter 17: Desktop Applications with Neko
497
The menu package in nGui consists of three classes and an interface. The three classes are Menu , Item ,
and Submenu . Menu is the parent governing control in the menu package representing the entire menu
functionality, Item is the child class which represents each clickable label within any given menu
display, while Submenu represents any Item ??™ s grouped by context.
Pages:
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921