List Info

Thread: Toolbar Button - Check type - Already selected in designer howto?




Toolbar Button - Check type - Already selected in designer howto?
country flaguser name
United States
2007-09-17 04:57:51

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.

Obviously not a biggie, but it would be useful for me.

Thanks
Mal

__._,_.___
.

__,_._,___
Re: Toolbar Button - Check type - Already selected in designer howto?
country flaguser name
United Kingdom
2007-09-17 05:13:55

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

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )