change default selection on a ToolBar RadioTool? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
bsenftner
Experienced Solver
Experienced Solver
Posts: 85
Joined: Thu May 26, 2016 9:19 pm

change default selection on a ToolBar RadioTool?

Post by bsenftner »

I have some toolbars on various windows with VCR style "Play, Pause, Stop" buttons implemented as a RadioTool. I want a RadioTool because after selection the button remains selected, indicating the state of video playback. (Video playback is not obvious, as video cameras can be delivering blank/black frames.)

Because the default tool selected in a RadioTool is the first item, that means I need to change the traditional order of "play, pause, stop" buttons such that "stop" is first. Seems trivial, but <redacted> users will not like it. How would one change the default selection for a RadioTool on a ToolBar?
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: change default selection on a ToolBar RadioTool?

Post by doublemax »

Have you tried ToggleTool() ?
Use the source, Luke!
Post Reply