how to manage wxMenuItem events Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Mamo_Grag17
Earned some good credits
Earned some good credits
Posts: 107
Joined: Thu Mar 31, 2022 7:45 pm
Location: Morocco

how to manage wxMenuItem events

Post by Mamo_Grag17 »

Hello, i have a menu and a menu item, i want to show a message box when the menu item is clicked but i don't know how.

this is my code:

Code: Select all

  about = new wxMenuItem(help_menu,wxID_ANY,"about");
  Bind(wxEVT_MENU,&frame::onAboutExercice,about_exerice->GetId());
i tried whatever i know but nothing works, please help.
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: how to manage wxMenuItem events

Post by doublemax »

Please check any of the samples that come with wxWidgets, e.g. the "minimal" sample.
Use the source, Luke!
Post Reply