(3)

NAME
RadioBtn

DESCRIPTION
The RadioBtn widget contains a number of text labels each adjacent to a radio push button. Only one button at a time can be selected.

  Public variables
RadioBtn
Name | Class | Type | Default
XtNbuttons | XtCButtons | String | NULL
XtNfont | XtCFont | FontStruct | XtDefaultFont
XtNcolor | XtCColor | Pixel | XtDefaultForeground
XtNinternalOffset | XtCInternalOffset | Dimension | 2
XtNcircleSize | XtCCircleSize | Dimension | 11
XtNcircleGap | XtCCircleGap | Dimension | 9
XtNverticalGap | XtCVerticalGap | Dimension | 9
XtNselected | XtCSelected | int | 0
XtNradioCallback | XtCRadioCallback | Callback | NULL

XtNbuttons
    The text for all the radio buttons are specifed by the buttons string resource. The text for separate buttons is delimited by a vertical bar.

XtNfont
    The text is drawn using the font given in the font resource.

XtNcolor
    The color resource specifies the color used for drawing the text.

XtNinternalOffset
    The offset from the text to the outside edge of the widgets window.

XtNcircleSize
    The size of each radio button.

XtNcircleGap
    The number of pixels between the radio button and the text.

XtNverticalGap
    The number of pixels between each button.

XtNselected
    Which button is selected.

XtNradioCallback
    The radioCallback is called from the press action if a different button was selected. The call_data argument will be an integer indicating the new selection.

XtNborder_width
    The border width is 0 by default.

    Core
    Name | Class | Type | Default
    XtNx | XtCX | Position | 0
    XtNy | XtCY | Position | 0
    XtNwidth | XtCWidth | Dimension | 0
    XtNheight | XtCHeight | Dimension | 0
    borderWidth | XtCBorderWidth | Dimension | 0
    XtNcolormap | XtCColormap | Colormap | NULL
    XtNdepth | XtCDepth | Int | 0
    destroyCallback | XtCDestroyCallback | XTCallbackList | NULL
    XtNsensitive | XtCSensitive | Boolean | True
    XtNtm | XtCTm | XTTMRec | NULL
    ancestorSensitive | XtCAncestorSensitive | Boolean | False
    accelerators | XtCAccelerators | XTTranslations | NULL
    borderColor | XtCBorderColor | Pixel | 0
    borderPixmap | XtCBorderPixmap | Pixmap | NULL
    background | XtCBackground | Pixel | 0
    backgroundPixmap | XtCBackgroundPixmap | Pixmap | NULL
    mappedWhenManaged | XtCMappedWhenManaged | Boolean | True
    XtNscreen | XtCScreen | Screen * | NULL

  Translations
The press action selects the button underneath the mouse cursor. By default it is bound to a click of the left mouse button.

<Btn1Down>,<Btn1Up>: press()

  Actions

press
    The press action selects the radio button under the mouse cursor.