Bug #17037 2010-03-30 01:39

wjykk

wxMenuItems Added to .cpp instead of .h

There's a weird annoyance occurring when adding wxMenuItems through wxSmith. The wxMenuItems are being added in the main .cpp file, right under the //(*Initialize(wxEVAFrame) line instead of placing it in the header file, making those menu items unusable for public usages. If the menu items (e.g. wxMenuItem* MenuItem10;) are declared in both the .cpp file and the header file, the resulting program crashes when these menus are accessed from the program (e.g. MenuItem10->Enable(true);). If the declaration is removed from the .cpp file, the program works normally, although when the GUI editor is refreshed the annoyance comes back.

Category
Plugin::wxSmith
Group
 
Status
Closed
Close date
2010-04-04 05:25
Assigned to
 
wjykk 2010-03-30 01:56

Problem solved! Code::Blocks was just on crack and crashed later afterward. Then it came back to its senses.

Closed!