Home Index classes Index static functions Index enumerations Index structure types

{Checkbox|_control}


CLASS {Checkbox|_control} , UNTESTED :



A visual form component: checkbox with a text label. It can be in two states; Checked and !Checked. A state can be set programmatically (Set_check) or (if a component is not disabled) - by a user. Events changed and click allow do something on its state change. See also a definition of its ancestor {Control} and of a form: {Form}.


IMPORT : {Form} , {Control} .


BASE CLASS {Control} .



------------------------------------------------------------------ 'create'

 

FUN New_checkbox (
     
{Form} Form|_parent ,
     
STR Alias|_control ,
     
STR Text|_label ) ==> {Checkbox} , NEW



------------------------------------------------------------------- 'state'

   

METHOD Checked|_checkbox ==> BOOL



METHOD Set_check|ed ( BOOL Checked|_value ) , SETTER FOR Checked



METHOD Invert|_checked



------------------------------------------------------------- 'radio group'

INT Radio_group


 

METHOD Set_radio_group ( INT Value|_radio_group )


END