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