Dprogramming.com - The D Programming Language [archived content]
Directory

Home
News
Wiki
Entice Designer
DCode editor
Linkdef
bintod
Tutorial
D FAQ
Code
    bintod
    DFL GUI
    D irclib IRC
    fileprompt
    ini files
    Linkdef
    list linked list
    mtext
    Splat sockets
    trayicon
    wildcard
Contact
Paste
Links

trayicon

Note: DFL has its own tray icon class named NotifyIcon.

This module contains a nice class named TrayIcon that makes using tray icons really simple. Download here. Here's an example:
TrayIcon ti = new TrayIcon(hwParent, 1, hicon, "my tray icon!");
ti.show();
This class contains other useful members such as tip to get and set the tooltip text, icon to get and set the icon, and hide. Other functions in this module are: animation returns boolean value indicating if the Windows maximize/minimize animations are enabled; area to obtain the tray notification area in screen coordinates; minimize to minimize the window to the tray notification area, using animation (if enabled); and restore to restore the window from the tray notification area, using animation (if enabled).
Copyright © 2004-2008 Christopher E. Miller