V.2.9
clsTrayArea

This class permits you to add, remove or change icons or tip messages on the tray area of the Windows shell.
when the class terminates all added icons will be removed from the Tray Area.
See the "Sample 1" for a working sample.

Methods:
hWnd Sets the window handle that will receive callback messages from the Tray Area
Message Sets/Gets the window message that will be sent from the Tray Area. The default is WM_MOUSEMOVE
AddIcon Adds a specified icon to the Tray Area; returns True if the call succeded

Parameters:

uID As Long -> a number that you can use to identify the icon
sTip As String -> the icon Tip
hIcon As Long -> the icon Handle
ChangeIcon Change a certain icon with another one

Parameters:

uID As Long -> the icon identifier
hIcon As Long -> the icon Handle
ChangeTip Changes the Tip related to a certain icon
DeleteIcon Deletes a certain icon from the Tray Area
RemoveAllIcons Removes all added icons from the Tray Area
GetLastIconID Returns the latest icon ID added to the Tray Area
PopupMenu Shows a popup menu from the Tray Area

Parameters:

oMenuForm As Form -> the form which contains the menu to show
oMenu As Menu -> the menu object to show

Ex:

oTray.PopupMenu Me, mnuFile
http://www.hexagora.com
Tue, 21 Apr 2009 09:16:33 UT
Copyright 2003-10 by Lorenzi Davide