Prev | Current Page 966 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Next, in the part of the code that initializes your application, enter the
following line:
tray = new systools.win.Tray( window, iconPath, toolTip );
The variable holding the returned reference should be a static variable. This is essential, as you don ??™ t
want to lose the reference before your application exits. Doing so could lead to the tray icon
disappearing prematurely.
The parameters required by systools.win.Tray are, in order, the object instance of the Window class
for your primary SWHX window, a string depicting the relative location to the icon file, and a string
containing the text to use as a rollover tooltip. You can pass null as the third parameter if you do not
want to display any tooltip text. Bear in mind, though, that the tooltip can currently only be set when
you initially make a call to create a tray icon.
Creating Menus
In our opinion, nothing makes a desktop multimedia application look more professional than native
menus, and SWHX supports it all, at least for Windows. Creating menus in SWHX is fairly simple, but
as always, here ??™ s a look at an example first.


Pages:
954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978