About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Common Properties:
  Name *
  Caption
  Left *
  Top *
  Width *
  Height *
  Align *
  AutoLeft *
  AutoTop *
  DeltaLeft *
  DeltaTop *
  DeltaRight *
  DeltaBottom *
  AutoCenter *
  FullWidth *
  Menu *
  Anchors
  Color
  Enabled
  Visible
  DataSource
  Field
Common Events:
  OnClick *
Group Properties:
  Alignment
Visual Object Reference
  Common Properties
  Common Events
  ActiveX
  Button
  Checkbox
  CheckGroup
  ColorBtn
  Column
  Combo
  Dock
  Edit
  Grid
  Group
  Image
  Item
  ItemSep
  Label
  List
  Memo
  Menu
  Navigator
  Node
  Page
  Pages
  Panel
  RadioGroup
    Columns
    Items
    CaptionProp
    Value
    Text
    WordWrap
    AutoSize
    ItemHeight
    Add
  Ruler
  SpinEdit
  Splash
  Splitter
  StatusBar
  Style
  Tab
  Tabs
  Toolbar
  Tree
  Window
Related Links:
  RadioGroup
RadioGroup [[zRadioGroup]] 
NOTE: This Design document is subject to change at any time.

Syntax: <RADIOGROUP property-list>group items</RADIOGROUP>

Creates a group of radio buttons. Radio buttons are options where only one in a group is allowed to be checked at a time. Checking a radio item will cause all other items in the group to be unchecked.

Items can be added with the ItemList property, or by placing a GROUPITEM within the group. For example, to create the image shown at the top of this article, you can use the code:
Code:
<RADIOGROUP ItemList='Item 1|Item 2|Item 3'/>

or the equivalent code:
Code:
<RADIOGROUP>
  <GROUPITEM Caption='Item 1'/>
  <GROUPITEM Caption='Item 2'/>
  <GROUPITEM Caption='Item 3'/>
</RADIOGROUP>

The advantage of the second method is that you can also specify the Value property of each item. Normally items have a value starting at zero based upon their position in the list. By assigning your own value to each item you can control the overall value of the RadioGroup component. This allows the RadioGroup to return any value, including complex objects.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net