.


:




:

































 

 

 

 


CheckBox CheckListBox




CheckBox , - , .

, ( AllowGrayed true): ( ), ( ) ( ).

State: cbGrayed, cbChecked, cbUnchecked. AllowGrayed = false ( ), : . State, AllowGrayed .

State, Checked. Checked true, , .. State = cbChecked. Checked false, State cbUnchecked cbGrayed. Checked true State cbChecked.

CheckBox Caption, − Alignment.

CheckListBox − , (. 4). , .

: State Checked. , . Count ( ). , Count 1.

State Checked , . ,

CheckListBox1->Checked[1] = true;

CheckListBox1->State[2] = cbGrayed;

CheckListBox1 , − .

for(int i=0; i <CheckListBox1->Items->Count; i++)

if(CheckListBox1->Checked[i]

, - ().

CheckListBox OnClickCheck, . .

 

3.

6. Panel, Label CheckBox CheckBox 1 2 . AllowGrayed false, − true. . , , − .

 

 





:


: 2015-10-01; !; : 471 |


:

:

- - , .
==> ...

1489 - | 1479 -


© 2015-2024 lektsii.org - -

: 0.011 .