[Solved] PB 5.60 Bug? #PBAny not possible in ImageID
Posted: Thu Jul 20, 2017 12:26 pm
Hi,
can you tell me what I'm doing wrong? Or is it a bug?
This code works:
This one doesn't (well the images are not shown in the menu...):
can you tell me what I'm doing wrong? Or is it a bug?
This code works:
Code: Select all
If CreatePopupImageMenu(#TrayMenu,#PB_Menu_ModernLook)
MenuItem(3, "Set Applications", CatchImage(2, ?Prefs))
MenuItem(2, "Help/About", CatchImage(1, ?Help))
MenuBar()
MenuItem(1,"Exit", CatchImage(0, ?Exit))
SetMenuItemState(#TrayMenu,5,1)
EndIf
Code: Select all
If CreatePopupImageMenu(#TrayMenu,#PB_Menu_ModernLook)
MenuItem(3, "Set Applications", CatchImage(#PB_Any, ?Prefs))
MenuItem(2, "Help/About", CatchImage(#PB_Any, ?Help))
MenuBar()
MenuItem(1,"Exit", CatchImage(#PB_Any, ?Exit))
SetMenuItemState(#TrayMenu,5,1)
EndIf