Dhoo
Thanx Jeremy.



Jeremy North <jeremy.no...@gmail.com> 
Sent by: delphi-boun...@elists.org
29/05/2009 01:38
Please respond to
Borland's Delphi  Discussion List <delphi@elists.org>


To
"Borland's Delphi Discussion List" <delphi@elists.org>
cc

Subject
Re: Disable a button in a radiobutton group






A radiogroup is just a group box with TRadioButton components on it.

To disable the first radiobutton in a radio group use:
  MyRadioGroup.Controls[0].Enabled := False;

To disable the third radiobutton you would use:
  MyRadioGroup.Controls[2].Enabled := False;

cheers,
Jeremy

On Fri, May 29, 2009 at 2:03 AM,  <robert.poin...@yara.com> wrote:
> I am useing an array in another part of the app so I want to stay in 
sync.
> how can I make one of the buttons I am creating unsable?
>
>
>        for I := 0 to high(aRbInfo) do begin
>                /// if we have an ip address add a radio button
>                ///
>                x[i] := 0;
>                ///   add prompt to radio button
>                ///
>                RbNetworkSelector.Items.Add(arbinfo[i][RB_PROMPT]);
>                ///   if it was the last selection
>                if i = iCurrent then
>                        ///   Mark radio button just added as selected
>                        RbNetworkSelector.ItemIndex := i;
>                if arbinfo[i][IP_ADDRESS] = '' then begin
> //                                                     Here I want to 
make
> button invisible . or better yet disable
>                end else
>                        x[i] := 1;
>        end;
>
> ***********************************************************************
> NOTICE: This e-mail transmission, and any documents, files or previous
> e-mail messages attached to it, may contain confidential or privileged
> information. If you are not the intended recipient, or a person
> responsible for delivering it to the intended recipient, you are
> hereby notified that any disclosure, copying, distribution or use of
> any of the information contained in or attached to this message is
> STRICTLY PROHIBITED. If you have received this transmission in error,
> please immediately notify the sender and delete the e-mail and attached
> documents. Thank you.
> ***********************************************************************
> _______________________________________________
> Delphi mailing list -> Delphi@elists.org
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi



***********************************************************************
NOTICE: This e-mail transmission, and any documents, files or previous
e-mail messages attached to it, may contain confidential or privileged
information. If you are not the intended recipient, or a person
responsible for delivering it to the intended recipient, you are
hereby notified that any disclosure, copying, distribution or use of
any of the information contained in or attached to this message is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender and delete the e-mail and attached
documents. Thank you.
***********************************************************************
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to