Popup Menus

BlitzMax Modules Forums/Brucey's Modules/Popup Menus

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Looking at the Menu sample program i can see where the popup menu is displayed.

Function OnRightUp(event:wxEvent)
Local x:Int, y:Int
wxMouseEvent(event).GetPosition(x, y)
MyFrame(event.parent).ShowContextMenu(x, y)
End Function

what i would like to do is recognise the control under the mouse. They will be listctrl's but the right click might occur in a section that doesn't have an item to respond to OnListItemRightClick. If i click on the header then i can respond with OnListColumnRightClick.

or should i be using wxWindow.wxMouseEvent.OnRightUp on the specific controls?

Cheers
Glenn