popupmenu event checking problem
Posted: Mon May 12, 2003 1:47 pm
I use the following code to popup a predefined menu when a specific gadget is clicked; in this case a ListIconGadget; and this works.
Problem is that although the popup menu pops up where and when it should, the events themselves never get fired when selected from the popup menu and I do not know why.
All my constants for both a permanent menu and the popup menu are different (I debugged all the values). Can't think what it could be
Code: Select all
Repeat
EventID = WaitWindowEvent()
Select EventID
Case #PB_EventMenu
Select EventMenuID()
Case #Mypopupevent1
Case #Mypopupevent2
EndSelect
Case #PB_EventGadget
Select EventGadgetID()
Case #Gadget_searchreplace_listbox
If EventType() = #PB_EventType_RightClick
DisplayPopupMenu(#Popup_searchreplace, WindowID())
EndIf
EndSelect
EndSelect
Until EventID = #PB_Event_CloseWindow
End
All my constants for both a permanent menu and the popup menu are different (I debugged all the values). Can't think what it could be