I've got a Toolbar with a group of RadioTools. When the program first opens, I want them all to be disabled, but the first one always uses the non-disabled bitmap, because (it seems) one of the RadioTools in the group must be selected at all times, even if they are all disabled.
Is there a way to add an extra invisible RadioTool, which I can toggle on when I want all the visible tools to look disabled and inactive?
Or will I have to make them all regular tools, and handle the radio toggling myself?
Or is there another solution?
How to have all RadioTools in a group deselected?
-
- Earned a small fee
- Posts: 22
- Joined: Sun May 26, 2019 8:10 pm
Re: How to have all RadioTools in a group deselected?
That's what i'd do.Or will I have to make them all regular tools, and handle the radio toggling myself?
Use the source, Luke!
-
- Earned a small fee
- Posts: 22
- Joined: Sun May 26, 2019 8:10 pm
Re: How to have all RadioTools in a group deselected?
I went with something else in the end. If I'm disabling all the tools, I toggle the first one on and set its active bitmap to be the disabled bitmap. Then when I re-enable, I reset the active bitmap. This makes all the tools look and act disabled. Seemed like less trouble than re-inventing radio tools from scratch.