Prev | Current Page 913 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

onClick = function()
{
neko.Lib.println( ???item 2 was clicked??? );
}
i4.onClick = function()
{
neko.Lib.println( ???item 3 was clicked??? );
}
s1 = new Submenu( ???Submenu???, smnu );
mnu.addItem( s1 );
var lbl : Label = new Label( ???You should see the menu above??? );
var wind : Dialog = new Dialog( lbl );
wind.menu = ???MyMenu???;
wind.setSize( ???200???, ???200??? );
wind.title = ???Menu Sample???;
wind.show();
mng.loop();
mng.close();
}
}
(continued)
Chapter 17: Desktop Applications with Neko
499
The hxGtk Library
The hxGtk library functions a little differently to the nGui library. Indeed, to contemplate using hxGtk , it
is advised that you keep a reference to the GTK library handy, as well as decent SQLite management
software, as you ??™ ll need these to decipher what functions are available to you and how to use them.
When Ritchie Turner developed the bindings for hxGtk , he decided that, having been faced with the
impossible task of wrapping such a vast library, it would pay to develop a script that would produce
most of the work for him based on the source of GTK.


Pages:
901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925