RadioButton

Previous Next

 

A radio button in panel of radio buttons in a dialog window. Each time one of the radio buttons in the panel is selected, all other radio buttons in the panel are automatically deselected.

When a radio button is selected, the string value of the RadioButton element is true, otherwise false.

 

Example

<example xmlns:pc="Processing.Command" xmlns:assign="Processing.Command.Assign">
   <pc:Dialog 
      assign:doaction="xslutil:test(/Forms/Form/Panel/RadioButton[1]) 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>
         <Panel newline="true" dx="30" name="ask"/>
         <RadioButton panel="ask" w="60" h="60" name="actionchoice" value="false" label="Yes, do"/>
         <RadioButton panel="ask" w="60" h="60" name="actionchoice" value="true" label="No"/>      
         <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

Panel

pc:Dialog