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
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