Panel

Previous Next

 

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

The panel attribute of the RadioButton element specifies to which panel the radio button belongs.

 

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

RadioButton

pc:Dialog