Mantis - tweak
Viewing Issue Advanced Details
1383 Any minor always 06-28-05 13:16 07-15-05 00:56
corny  
 
normal  
resolved  
no change required  
none    
none  
0001383: CCheckBox expects value: instead of selected:
to initialize a CCheckBox one can either use select or deselect or directly set value: to the designated boolean.

One would also expect, that using selected: will set the value of the CheckBox. This does not happen though.

It is not a bug, but it can lead to misunderstanding, since selected: is implemented in CButton, but not in CCheckBox.

Solution:
CCheckBox selected: aBoolean
  self value: aBoolean

Notes
(0001794)
andreas   
07-15-05 00:56   
This is interpretation is incorrect. The "selected" state is a purely visual indicator for how a button should be drawn. Changing the visual appearance must not change the value of the checkbox, but changing the value of the checkbox should indeed change the visual appearance. This is simply a one-way and not a two-way relation.