OptionButton

The place for threads about TimoSoft ButtonControls.
Post Reply
User avatar
itmg
Lieutenant
Posts: 13
Joined: 14 Jul 2009, 12:04

OptionButton

Post by itmg » 21 Oct 2009, 14:16

Hi,

new problem with the optionbutton.

Place two OptionButtons onto a form (opt1 and opt2).
Set following properties:
opt2.Selected = True
opt1.TabIndex = 0
opt2.TabIndex = 1

When you run the application, the optionbutton opt1 is selected instead of opt2.
After the Form_Load event, the optionButtons_selectionchanged events are fired.

Maybe, the property TabIndex causes this behavior.
When you change the values of the tabindex properties, the OptionButton opt2 is selected.

ButtonControls 1.4 Unicode
EditControls 1.4 Unicode
DateTimeControls 1.1 Unicode
Statusbar 1.2 Unicode

User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: Unterföhring
Contact:

Re: OptionButton

Post by TiKu » 22 Oct 2009, 09:01

Yeah, that's the normal behavior. If the OptionButton receives the focus, it is selected. And since the control, whose TabIndex property is set to 0, receives the focus on application startup...
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!

Post Reply