From: POYEN OP Olivier (DCL) <Olivier.POYEN@clf-dexia.com> - 2004-06-18 06:04:02
>I have a file menu with two wxITEM_RADIO file menu items. By default =
the first item is selected, how >>would I change this so that the second =
item is selected on startup?
>Also, in another file menu, I have a checkbox (kind=3DwxITEM_CHECK) =
which I want checked on startup. The current setting has the item =
unchecked. How would I go about setting the item to 'checked' by =
You won't do that directly - AFAIK - in Boa
1) either you change the meaning of the menu entry to it's opposite, and =
have it un-checked by default
2)In your __init__, after Boa's processing, Boa creates all the menu, =
all the menu item and, at the start of the file, all the ID, sorted by =
menu/object they belongs to.
So, let's say you have a menu called mainMenu, and the checked item you =
want is identified by ID wxID_MAINMENUITEM1.=20
Then, just do=20
self.mainMenu.Check(wxID_MAINMENUITEM1,True) after Boa'initialization.
Work for both Radio and Check Item