• Welcome to PlanetSquires Forums.
 

Option buttons & Tab-Stop

Started by Petrus Vorster, August 05, 2016, 01:47:02 PM

Previous topic - Next topic

Petrus Vorster

HI all

I havent used option buttons in ages.
Just something curious.... I dont want the option buttons to receive the Tab-focus.
Therefore i just removed the "tick" in the Firefly tab-order box for the controls.
I also checked in the Windowsstyles that the WS_tabstop was unchecked.

It still received a tab focus.
LOL....I am too lazy to rewrite the entire tool with something else, so if i can figure out how to prevent that i will be most happy!
:P
-Regards
Peter

David Kenny

Microsoft Control Spy 2.0 (Not just an executable, must be installed. link below if you need it) says that the Tab Stop is set.  Looks like FF is not handling that correctly.  As a workaround, you can manually turn it off for each option button in the form create function.

Pretty easy to figure out how to use it, but drag-and-drop the reticle onto one of the actual option buttons on your running application.
https://www.microsoft.com/en-us/download/confirmation.aspx?id=4635

David

David Kenny

Oops! I pointed you to Control Spy (useful utility for learning about controls) but that's not what I used (and isn't helpful in this case).

I used WinSpy++

http://www.catch22.net/software/winspy-17

Petrus Vorster

Thanks for the advice David.

Had to go with a Checkbox instead. It doesn't have this issue.
Luckily only minor code changes required.

Works like a charm now!
:)
-Regards
Peter