Topic: Checkbox

hello,i have a question:ihave a form with two checkboxes,and there is a possibility when i check one the other to be gray (not to click on) and viceversa?

Regards

Re: Checkbox

Hello,


example:

procedure Form1_CheckBox1_OnClick (Sender: string);
begin
    Form1.CheckBox2.Checked := not Form1.CheckBox1.Checked;
end;

procedure Form1_CheckBox2_OnClick (Sender: string);
begin
    Form1.CheckBox1.Checked := not Form1.CheckBox2.Checked;
end;
Dmitry.

3 (edited by popcornelnicusor 2015-09-17 18:51:25)

Re: Checkbox

hello Dimitry,

thanks for fast reply,the example was very good,but the ideea is not to be posible to click on the checkbox ex: when the check box one is clicked (then tha checkbox 2 become invalid) and when checkbox 2 is clicked then checkbox1 becom invalid  is there a posibility?

sorry i'm a novice;)

Regards

Re: Checkbox

procedure Form1_CheckBox1_OnClick (Sender: string);
begin
    Form1.CheckBox2.Enabled := not Form1.CheckBox1.Checked;
end;
Dmitry.

Re: Checkbox

hello Dimitry,

thanks for fast reply,still not achieving,can u send a tiny example?
https://www.google.com/search?q=checkbo … O00rPUM%3A

regards!

Re: Checkbox

popcornelnicusor wrote:

hello Dimitry,

thanks for fast reply,still not achieving,can u send a tiny example?
https://www.google.com/search?q=checkbo … O00rPUM%3A

regards!

Example for you:

Post's attachments

Attachment icon CheckBox.zip 2.13 kb, 527 downloads since 2015-09-18 

Dmitry.

Re: Checkbox

mant thanks!