MyControl and menu item updating
Vadim Zeitlin
vadim at wxwindows.org
Tue Aug 1 17:10:07 PDT 2006
On Tue, 01 Aug 2006 00:44:18 +0200 H <H at h.com> wrote:
H> Inside one of my dialogs I use a control that I have written by myself.
H> Let's say MyControl. This is derived from wxControl. MyControl
H> implements copy&paste and therefore also reacts on update UI events for
H> menu items. The problem is that the menu items are not updated correctly.
Probably because you didn't implement EVT_UPDATE_UI() for them.
H> If I replace my control with a standard wxTextCtrl and the clipboard
H> contents are identical the paste menu item in the menubar as well as in
H> the context menu are activated.
I don't know which version of you use but I remember that there was a
brief period when menu UI update events were forwarded to the active
control which could result in the behaviour you describe. But we don't do
this any more AFAIK.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list