Prev | Current Page 965 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


Part III: Extending the Possibilities
526
Creating a System Tray Icon
When you develop SWHX applications, particularly those utilizing the WF_NO_TASKBAR flag, it can often
pay to assign access to the application through an icon in the Windows system tray. This can be
particularly impressive should your application behave as a useful tool that might sit running on a users
desktop from the moment it boots up to the moment it shuts down.
Creating a tray icon is simple, providing you already have an icon you would like to use. Icon files have
an . ico extension, and are essentially graphic files. If you don ??™ t have one lying around that will suit,
there are many on the Internet that you can download for free. Alternatively, you could try one of the
many shareware icon design applications on the Internet. Just make sure that any icon you use is set to
display at 16 ?— 16 pixels.
Once you have your icon, place it in your project folder and note where it is in relation to the executable
that will boot your application.


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