$frame->GetMenuBar; :-)
Although, It would be great if someone could please post a simple, but
COMPLETE, app thats used all ( at least most ) xrc options ( minus the
xml code of course ). Most everything out there is either a fragemnt or
bare-bones.
Thanks.
Jeff
perltk wrote:
Learning about XRC just now. Things are going well except for getting
a handle on the menu.
I have a class 'wxMenuBar' name 'mainmenu' in my xrc. I don't
actually call ->LoadMenuBar('mainmenu'), but the callback assignements
to the menuitems work fine.
I'd like to use checked menu items, but this seems to need a handle on
the Menubar object for
something like this:
$menu->Checked($id,1);
I have the $id, but can't seem to figure out a way to get the $menu
object.
If i actually explicitly do:
my $menu = $xr->LoadMenuBar('mainmenu');
I get a popup error
'XRC resource 'mainmenu' (class 'wxMenuBar') not found'
Confused.
Jeff