CheckBox

Previous Next

 

A 2-valued check box in a dialog window. The user can choose to select or deselect the check box.

 

Example

When the check box is selected, the string value of the CheckBox element is true, otherwise false.

<example xmlns:pc="Processing.Command" xmlns:assign="Processing.Command.Assign">
  <pc:Dialog
      assign:doaction="xslutil:test(/Forms/Form/CheckBox) and  xslutil:test(/Forms/Form/@result)">
      <Form w="300">
         <Title>Do you want this action?</Title>
         <Label dx="5" dy="5" w="30">Do action?</Label>
         <CheckBox dx="10" dy="10" name="mychoice" value="false" label="Option"/>
         <Button dy="20" newline="true"><Result>OK</Result>Proceed</Button>
         <Button><Result>Cancel</Result>Cancel</Button>
      </Form>
   </pc:Dialog>
   <pc:text pc:if="xslutil:test($doaction)">The action will be done.</pc:text>
</example>

 

See also

pc:Dialog