On Wed, 6 Oct 2004 16:36:17 -0700 (PDT) DH <crazyinsomniac@xxxxxxxxx> wrote:
> --- Mark Wardell <mark@xxxxxxxxxxxxxxxx> wrote:
>
> > Hi All,
> >
> > Has anyone successfully used Wx::Menu::UpdateUI when using a PopupMenu. From
> > the documentation it looks like this sub should be called before the menu is
> > displayed, but my routine does not get called. I have tried using
> > EVT_UPDATE_UI as well but no luck, I also tried EVT_MENU_OPEN but nothing.
>
> modifying minimal.pl, I can confirm that
> EVT_UPDATE_UI( $this, $mbar, sub {warn "frell @_" });
> works, but
> EVT_UPDATE_UI( $this, $mhelp, sub {warn "frell @_" });
> does not, and neither does
> EVT_MENU_OPEN( $mhelp, sub {warn "frell2 @_" });
With wxWidgets & wxPerl CVS it works for me (in minimal sample);
you are not passing
the right parameters: the second arguments needs to be a Window/Item ID
(numerical). wxPerl lets you use a Wx::Window (getting its id) and,
in 2.5.x only a Wx::MenuItem. Neither a Wx::menuBar nor a Wx::Menu
is supposed to work.
I will look into the problem with popup menus.
Regards
Mattia
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|