[EMAIL PROTECTED] wrote: > I am using D6 prof. under XP (all updates for both) > > If I from inside my app. change ItemIndex, overruling a just manually > set currently wrong selection, the 'Black Dot' does move to the new > selection. > > However, the dotted square marking around the item text remains with > the previous (wrong) item. > This means, that if I move focus to another form/application and go > back (just returning to the form itself), the radiogroup returns to its > previous (wrong) state. > > I have so far worked around that by moving the focus to somewhere > safe, after my 'in-software change' (and before issuing the warning > message!!), but is that the only way ? > > Is there a way to move the dotted text marking too ?
A TRadioGroup is a TGroupBox with a bunch of TRadioButtons on it. You could enumerate the TGroupBox's Controls array until you find the one that's checked, and then set the focus to it. There will be type-casting involved. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

