Checkbox

From Documentation
Revision as of 05:02, 14 May 2010 by Tmillsclare (talk | contribs)

Checkbox

Employment/Purpose

A checkbox.

Example

ZKComRef Checkbox Example.png

<window title="Checkbox demo" border="normal" width="350px">
	<checkbox id="apple" label="Apple" onCheck="doChecked()" />
	<checkbox id="orange" label="Orange" onCheck="doChecked()" />
	<checkbox id="banana" label="Banana" onCheck="doChecked()" />
	<hbox>
		You have selected :
		<label id="fruit2" />
	</hbox>
	<zscript> void doChecked() { fruit2.value = (apple.isChecked() ?
		apple.label+' ' : &quot;&quot;) 
                     + (orange.isChecked() ? orange.label+' ' : &quot;&quot;) 
                     + (banana.isChecked() ? banana.label+' ' : &quot;&quot;);
             }
         </zscript>
 </window>

Supported events

Name
Event Type
onRightClick
MouseEvent


Description: Denotes user has right-clicked the component.

onDoubleClick
MouseEvent


Description: Denotes user has double-clicked the component.

onFocus
Event


Description: Denotes when a component gets the focus.

onBlur
Event


Description: Denotes when a component loses the focus.

onCheck
CheckEvent

Description: Denotes when a component loses the focus.

Supported Children

*ALL

Use cases

Version Description Example Location
     

Version History

Version Date Content
5.0.2 5/12/2010 Initialization



Last Update : 2010/05/14

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.