Alec Teal
2014-10-01 23:13:13 UTC
A while a go I asked about creating a menu "dynamically" (members grow
based on some set at runtime, and I need to know which was clicked)
I got no useful answer (other than the obvious/tedious/bad "dole out
some IDs and hope!") - I have noticed before that wxMenuItem has a
virtual destructor, I've subclassed this but the item returned by the
event is the menu the item is in.
I think this is intended (although I'd love to know where it is
documented) - why is it intended? If a menu item is clicked I expect
which one to be the event object, if I want the menu I'd get it out of
the menu item.
This is a real pain, I can't be the first to want to do this surely!?
Alec
based on some set at runtime, and I need to know which was clicked)
I got no useful answer (other than the obvious/tedious/bad "dole out
some IDs and hope!") - I have noticed before that wxMenuItem has a
virtual destructor, I've subclassed this but the item returned by the
event is the menu the item is in.
I think this is intended (although I'd love to know where it is
documented) - why is it intended? If a menu item is clicked I expect
which one to be the event object, if I want the menu I'd get it out of
the menu item.
This is a real pain, I can't be the first to want to do this surely!?
Alec
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users