[lazarus] RadioGroup problem
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Mar 17 04:23:55 EST 2003
On 16 Mar 2003 21:51:44 -0600
Tony Maro <tony at maro.net> wrote:
> I'm attempting to programmatically set the state of a radio group that
> has two buttons.
>
> I create the form (not shown), then set the form.radiogroup.itemindex
> property. The first time I use this modal form it works fine, but if I
> close the form, change the setting, and attempt to reopen it, the form
> will always show the original setting.
>
> For instance...
>
> Set the ItemIndex to 1
> Display form
> It displays 1 as pushed.
> Close the form without changing it.
> Set the ItemIndex to 0
> Display form
> It displays 1 as pushed (still) until app is completely closed and
> reopened, or until the user clicks a radio button at which time it will
> decide THAT is the new always setting.
>
> The reverse holds true...
> Set it to zero, display, close, change to 1, display and zero still
> shows checked.
>
> Amy ideas would be appreciated.
Fixed.
Mattias
>
> --
> Tony Maro
> tony at maro.net
> http://tony.maro.net/
>
> Check out my software "CheckBook Tracker"
> A GPL (free) replacement for Microsoft Money!
>
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.lazarus.freepascal.org/mailarchives
More information about the Lazarus
mailing list