Re:Radiobutton checked when form focused
Quote
Chris Luck wrote:
> This problem is generated entirely by your apparent dis-inclination to set the
> focus at the time you set the selection. I don't understand you aversion to
> doing this.
Let me explain in more detail, perhaps I was unclear previously. Assume
you have a scenario where your application has a configuration that can
be loaded from files. A certain set of options is displayed using (among
others) TRadioButtons. Now the user clicks some controls and therefore
changes configuration settings. Say he clicks one radio button, so the
focus changes and so does the check mark.
NOW! Imagine what happens if the user loads another set of configuration
settings and the application changes the checked state of the
radiobuttons in a way that the currently focused radio button is
unchecked. Note that there is nothing wrong with this setup so far, only
the focused radio button - because the user has focused it previously -
and the checked state - because the application has changed it during
loading of the new configuration - do not match.
SO? Try switching task and go back. The setting that was loaded from
into the controls is suddenly lost because the radio button that is
focused is now checked too, which is not what was loaded programatically.
Don't you see the problem here?
Markus
--
______________________________________________________________________
Markus Spoettl,
toolsfactory
mailto:mar...@toolsfactory.com
http://www.toolsfactory.com