wxwidgetninja wrote:
> Hi Julian and all,
>
> I need a toolbar containing several toolbar buttons which mimic the
> menu check items. I would like to know if it is possible to use
> DialogBlocks to "push" the buttons on startup, or would I be best
> served by having this sort of informationin a config file which I
> should read and implement?
>
> I have the ability to select a Check Menu Item as Checked within the
> designer and wondered if this ability could be implemented with toolbar
> buttons.
>
It is a little inconsistent, I agree; I'll add it to my to-do list.
However, the best way to implement this in your app is to use UI update
events: see wxUpdateUIEvent in the wxWidgets manual. The status of
buttons and menu items will be set in idle time without having to code
it explicitly everywhere that the app state is changed. Also one update
event handler will do for both buttons and menu items, where the
identifiers are the same.
Regards,
Julian
.