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

