Enhanced Systray Library
Posted: Tue Jan 26, 2010 11:41 am
I was wondering if you could expand the Systray library? One feature I would particularly like to see is to have a context menu appear when a user clicks/right clicks on the Systray, or maybe it would be better to have a command that opens a context menu on the Systray icon, like this:
Code: Select all
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_SysTray
If EventType() = #PB_EventType_LeftDoubleClick
OpenContextMenu(SysTrayID(0))
ContextMenuItem(0, "Item 1")
ContextMenuItem(1, "Item 2")
ContextMenuBar()
ContextMenuItem(3, "Item 3")
EndIf
EndIf
Until Event = #PB_Event_CloseWindow