Library | File

Class uifcRadioGroup

# include <uifcRadioGroup.h>

class uifcRadioGroup
 : public virtual uifcSelection
{
    xaideclare(uifcRadioGroup)
    ...
};



Description





Method Summary

voidAddActionListener (uifcRadioGroupListener_ptr listener)
 
xboolCanResizeWhenNeeded ()
 
xboolCanTruncateText ()
 
xboolCanWrap ()
 
voidCreateTimer (uifcRadioGroupTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidDeletePopupMenu ()
 
xboolDoesAllowKeyboardInput ()
 
xboolDoesItemSelectWhenSelected ()
 
uifcButtonStyleGetButtonStyle ()
 
xintGetColumns ()
 
xintGetContentArrangement ()
 
xstringGetDragCursorImage ()
 
xstringGetDragItemName ()
 
xstringGetDragNotValidCursorImage ()
 
xstringGetDropItemName ()
 
xstringsequence_ptrGetEnabledItemNameArray ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xstringsequence_ptrGetItemHelpTextArray ()
 
xstringsequence_ptrGetItemImageArray ()
 
xintsequence_ptrGetItemImageBackgroundColorArray ()
 
xintsequence_ptrGetItemImageColorArray ()
 
xstringsequence_ptrGetItemNameArray ()
 
xstringsequence_ptrGetItemTextArray ()
 
uifcColors_ptrGetItemTextColorArray ()
 
xstringGetMostRecentItemName ()
 
uifcOrientationGetOrientation ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
xintGetRows ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
xstringsequence_ptrGetSelectedItemNameArray ()
 
xstringGetSetStateImage ()
 
uifcAlignmentGetTextAlignment ()
 
uifcDimension_ptrGetTextSize (xrstring str)
 
xstringGetUnsetStateImage ()
 
xstringsequence_ptrGetVisibleItemNameArray ()
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
xboolIsValidDragSite ()
 
voidPushAction (uifcRadioGroupAction action)
 
voidSetAllowKeyboardInput (xbool flag)
 
voidSetButtonStyle (uifcButtonStyle value)
 
voidSetCanResizeWhenNeeded (xbool flag)
 
voidSetCanTruncateText (xbool flag)
 
voidSetCanWrap (xbool flag)
 
voidSetColumns (xint value)
 
voidSetContentArrangement (xint value)
 
voidSetDragCursorImage (xrstring value)
 
voidSetDragNotValidCursorImage (xrstring value)
 
voidSetEnabledItemNameArray (xstringsequence_ptr values)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetItemHelpTextArray (xstringsequence_ptr values)
 
voidSetItemImageArray (xstringsequence_ptr values)
 
voidSetItemImageBackgroundColorArray (xintsequence_ptr values)
 
voidSetItemImageColorArray (xintsequence_ptr values)
 
voidSetItemNameArray (xstringsequence_ptr values)
 
voidSetItemSelectWhenSelected (xbool flag)
 
voidSetItemTextArray (xstringsequence_ptr values)
 
voidSetItemTextColorArray (uifcColors_ptr colors)
 
voidSetOrientation (uifcOrientation value)
 
voidSetRows (xint value)
 
voidSetSelectedItemNameArray (xstringsequence_ptr values)
 
voidSetSetStateImage (xrstring value)
 
voidSetTextAlignment (uifcAlignment value)
 
voidSetUnsetStateImage (xrstring value)
 
voidSetValidDragSite (xbool flag)
 
voidSetVisibleItemNameArray (xstringsequence_ptr values)
 
voidStartTimer (xrstring timerName, xint duration)
 
voidStopTimer (xrstring timerName)
 


Methods Inherited from Class uifcComponent:

GetDialog, GetComponent, CreateInParent, AddPopupMenu, IsVisible, SetVisible, GetComponentClass, GetComponentClassName, IsAlwaysAtFront, SetAlwaysAtFront, GetBackgroundColor, SetBackgroundColor, IsAttachedAtBottom, SetAttachedAtBottom, GetBottomOffset, SetBottomOffset, GetCursorImage, SetCursorImage, GetTextColor, SetTextColor, GetHelpTextAlignment, SetHelpTextAlignment, GetHelpTextWidth, SetHelpTextWidth, GetHelpTextOriginX, SetHelpTextOriginX, GetHelpTextOriginY, SetHelpTextOriginY, CanInheritPopupMenu, SetCanInheritPopupMenu, IsAttachedAtLeft, SetAttachedAtLeft, GetLeftOffset, SetLeftOffset, DoesReserveSpace, SetReserveSpace, GetParentName, GetPopupMenuName, SetPopupMenuName, CanPopupMenuWhenDisabled, SetCanPopupMenuWhenDisabled, IsAttachedAtRight, SetAttachedAtRight, GetRightOffset, SetRightOffset, IsAttachedAtTop, SetAttachedAtTop, GetTopOffset, SetTopOffset, IsValidDropSite, SetValidDropSite, GetValidDropTypeFlags, SetValidDropTypeFlags, GetChildNameArray, DoesAllowTrailRecording, SetAllowTrailRecording, CanReduceHeight, SetCanReduceHeight, CanReduceWidth, SetCanReduceWidth


Methods Inherited from Class uifcSelection:

IsInMixedState, SetInMixedState, GetTextFormat, SetTextFormat, GetFontName, SetFontName, GetFontClass, SetFontClass, GetFontSize, SetFontSize, IsEnabled, SetEnabled, GetHelpText, SetHelpText, GetFontStyle, SetFontStyle



Method Detail

voidDeletePopupMenu ()

 

Delete a MenuPane from the component.
Returns:



uifcPoint_ptrGetFrameOrigin ()

 

Determine the position of the component, in pixels, relative to its parent.
Returns:



xintInsertPopupMenu (uifcComponent_ptr component)

 

Add a MenuPane to be displayed when the user presses the right mouse button over the component.
Parameters:
component
Returns:



voidSetFrameOrigin (uifcPoint_ptr value)

 

Set the screen position of the component, in pixels, relative to its parent. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
value
Returns:



uifcDimension_ptrGetTextSize (xrstring str)

 

Get the size in pixels of the given text string.
Parameters:
str
Returns:



voidSetFrameRectangle (uifcRectangle_ptr rect)

 

Set the size and screen position of the component, in pixels. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
rect
Returns:



uifcDimension_ptrGetFrameMinimumSize ()

 

Determine the minimum size of the component, in pixels.
Returns:



uifcPoint_ptrGetScreenOrigin ()

 

Determine the screen position of the component, in pixels.
Returns:



voidSetFrameSize (uifcDimension_ptr value)

 

Set the size of the component, in pixels. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
value
Returns:



uifcRectangle_ptrGetScreenRectangle ()

 

Determine the size and screen position of the component, in pixels.
Returns:



uifcRectangle_ptrGetRectangleOfMonitor ()

 

Determine the rectangle of the screen upon which the majority of the given component is displayed.
Returns:



uifcDimension_ptrGetFrameSize ()

 

Determine the size of the component, in pixels.
Returns:



uifcRectangle_ptrGetFrameRectangle ()

 

Determine the size and position of the component, in pixels.
Returns:



xstringGetDragItemName ()

 
Returns:
The name of the item being dragged when the user starts a drag & drop operation by dragging within the component.



xintGetColumns ()

 
Returns:
The number of columns of buttons of the RadioGroup when the orientation is ORIENTATION_HORIZONTAL.



voidSetColumns (xint value)

 

Sets the number of columns of buttons of the RadioGroup when the orientation is ORIENTATION_HORIZONTAL.
Parameters:
value
Returns:



xstringsequence_ptrGetSelectedItemNameArray ()

 
Returns:
The names of the selected items of the component.



voidSetSelectedItemNameArray (xstringsequence_ptr values)

 

Sets the names of the selected items of the component.
Parameters:
values
Returns:



uifcOrientationGetOrientation ()

 
Returns:
The orientation of the RadioGroup.

ORIENTATION_HORIZONTAL Horizontal, with the buttons being laid out from left to right
ORIENTATION_VERTICAL Vertical, with the buttons being laid out from top to bottom



voidSetOrientation (uifcOrientation value)

 

Sets the orientation of the RadioGroup.

ORIENTATION_HORIZONTAL Horizontal, with the buttons being laid out from left to right
ORIENTATION_VERTICAL Vertical, with the buttons being laid out from top to bottom

Parameters:
value
Returns:



xstringGetDragCursorImage ()

 
Returns:
The cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over a valid drop-site.



voidSetDragCursorImage (xrstring value)

 

Sets the cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over a valid drop-site.
Parameters:
value
Returns:



xintsequence_ptrGetItemImageBackgroundColorArray ()

 
Returns:
The background colors of the images of the items of the component, as either a uifcColor or a uifcColor.



voidSetItemImageBackgroundColorArray (xintsequence_ptr values)

 

Sets the background colors of the images of the items of the component, as either a uifcColor or a uifcColor.
Parameters:
values
Returns:



uifcAlignmentGetTextAlignment ()

 
Returns:
The justification of the labels of the buttons of the RadioGroup if the labels are multi-line.

ALIGNMENT_LEFT Left justified
ALIGNMENT_CENTER Center justified
ALIGNMENT_RIGHT Right justified



voidSetTextAlignment (uifcAlignment value)

 

Sets the justification of the labels of the buttons of the RadioGroup if the labels are multi-line.

ALIGNMENT_LEFT Left justified
ALIGNMENT_CENTER Center justified
ALIGNMENT_RIGHT Right justified

Parameters:
value
Returns:



uifcButtonStyleGetButtonStyle ()

 
Returns:
The display style of the buttons of the RadioGroup.

BUTTON_STYLE_CHECK The horizontal and vertical margins are equal, no shadow border is drawn and by default the RadioGroup accepts keyboard input
BUTTON_STYLE_TOGGLE The horizontal margin is twice as wide as the vertical margin, the shadow border is always drawn and by default the RadioGroup accepts keyboard input
BUTTON_STYLE_TOOL The horizontal and vertical margins are equal, the shadow border is always drawn and by default the RadioGroup does not accept keyboard input
BUTTON_STYLE_FLAT The horizontal and vertical margins are equal, the shadow border is only drawn when the pointer is moved over the component and by default the RadioGroup does not accept keyboard input



voidSetButtonStyle (uifcButtonStyle value)

 

Sets the display style of the buttons of the RadioGroup.

BUTTON_STYLE_CHECK The horizontal and vertical margins are equal, no shadow border is drawn and by default the RadioGroup accepts keyboard input
BUTTON_STYLE_TOGGLE The horizontal margin is twice as wide as the vertical margin, the shadow border is always drawn and by default the RadioGroup accepts keyboard input
BUTTON_STYLE_TOOL The horizontal and vertical margins are equal, the shadow border is always drawn and by default the RadioGroup does not accept keyboard input
BUTTON_STYLE_FLAT The horizontal and vertical margins are equal, the shadow border is only drawn when the pointer is moved over the component and by default the RadioGroup does not accept keyboard input

Parameters:
value
Returns:



xboolCanWrap ()

 
Returns:
Flag indicating whether the labels of the buttons of the RadioGroup should wrap within the available space granted to the component by its parent. Currently this flag is only supported for components which are the children of a MenuPane, where the MenuPane has been assigned a given size by the application code.



voidSetCanWrap (xbool flag)

 

Sets flag indicating whether the labels of the buttons of the RadioGroup should wrap within the available space granted to the component by its parent. Currently this flag is only supported for components which are the children of a MenuPane, where the MenuPane has been assigned a given size by the application code.
Parameters:
flag
Returns:



xstringsequence_ptrGetVisibleItemNameArray ()

 
Returns:
The names of the visible items of the component. An empty array indicates that every item of the component is visible.



voidSetVisibleItemNameArray (xstringsequence_ptr values)

 

Sets the names of the visible items of the component. An empty array indicates that every item of the component is visible.
Parameters:
values
Returns:



xstringGetDragNotValidCursorImage ()

 
Returns:
The cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over an invalid drop-site.



voidSetDragNotValidCursorImage (xrstring value)

 

Sets the cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over an invalid drop-site.
Parameters:
value
Returns:



uifcColors_ptrGetItemTextColorArray ()

 
Returns:
The foreground colors of the items of the component, as a uifcColor.



voidSetItemTextColorArray (uifcColors_ptr colors)

 

Sets the foreground colors of the items of the component, as a uifcColor.
Parameters:
colors
Returns:



xintGetContentArrangement ()

 
Returns:
The alignment of the image and label of the buttons of the RadioGroup.
This is made up of between 1 and 4 digits which represent the relative locations of the image and label.
The first digit is the image alignment within the bounds of the button:

1 2 3
4 5 6
7 8 9

The second digit is optional and is the label alignment within the bounds of the button, using the same scheme as above. If no digit is specified then the label alignment is assumed to be the same as the image alignment.
The third digit is also optional and is the relative position of the image and the label if the first 2 digits are equal. If no digit is specified then the relative position is assumed to be 1.

1 The image to the left of the label
2 The image to the right of the label
3 The image above the label
4 The image below the label

The fourth digit is also optional and is a flag representing whether how the image and label should be displayed. If no digit is specified then then fourth digit is assumed to be 1.

1 Display both the image and label
2 Display only the image
3 Display only the label



voidSetContentArrangement (xint value)

 

Sets the alignment of the image and label of the buttons of the RadioGroup.
This is made up of between 1 and 4 digits which represent the relative locations of the image and label.
The first digit is the image alignment within the bounds of the button:

1 2 3
4 5 6
7 8 9

The second digit is optional and is the label alignment within the bounds of the button, using the same scheme as above. If no digit is specified then the label alignment is assumed to be the same as the image alignment.
The third digit is also optional and is the relative position of the image and the label if the first 2 digits are equal. If no digit is specified then the relative position is assumed to be 1.

1 The image to the left of the label
2 The image to the right of the label
3 The image above the label
4 The image below the label

The fourth digit is also optional and is a flag representing whether how the image and label should be displayed. If no digit is specified then then fourth digit is assumed to be 1.

1 Display both the image and label
2 Display only the image
3 Display only the label

Parameters:
value
Returns:



xboolDoesAllowKeyboardInput ()

 
Returns:
Flag indicating whether the component is capable of receiving keyboard input (xtrue), and hence is capable of receiving the keyboard input focus, or whether it responds only to mouse input (xfalse).
If this value is left unchanged (i.e. 2) then it is automatically set to xtrue or xfalse based upon the value of the ButtonStyle attribute.



voidSetAllowKeyboardInput (xbool flag)

 

Sets flag indicating whether the component is capable of receiving keyboard input (xtrue), and hence is capable of receiving the keyboard input focus, or whether it responds only to mouse input (xfalse).
If this value is left unchanged (i.e. 2) then it is automatically set to xtrue or xfalse based upon the value of the ButtonStyle attribute.
Parameters:
flag
Returns:



xstringGetDropItemName ()

 
Returns:
The name of the item beneath the pointer whilst the pointer is over the component during a drag & drop operation.



xstringsequence_ptrGetItemImageArray ()

 
Returns:
The images of the items of the component.
Each image may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.



voidSetItemImageArray (xstringsequence_ptr values)

 

Sets the images of the items of the component.
Each image may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.
Parameters:
values
Returns:



xstringsequence_ptrGetItemHelpTextArray ()

 
Returns:
The popup help-text to be displayed for the items of the component whilst the pointer is over the component.



voidSetItemHelpTextArray (xstringsequence_ptr values)

 

Sets the popup help-text to be displayed for the items of the component whilst the pointer is over the component.
Parameters:
values
Returns:



xboolIsValidDragSite ()

 
Returns:
Flag indicating whether the component can be dragged to start a drag & drop operation.



voidSetValidDragSite (xbool flag)

 

Sets flag indicating whether the component can be dragged to start a drag & drop operation.
Parameters:
flag
Returns:



xboolCanTruncateText ()

 
Returns:
Flag indicating whether to truncate the labels of the buttons of the RadioGroup with ellipsis if there is insufficient space to display the entire text string.



voidSetCanTruncateText (xbool flag)

 

Sets flag indicating whether to truncate the labels of the buttons of the RadioGroup with ellipsis if there is insufficient space to display the entire text string.
Parameters:
flag
Returns:



xintsequence_ptrGetItemImageColorArray ()

 
Returns:
The foreground colors of the images of the items of the component, as either a uifcColor or a uifcColor.



voidSetItemImageColorArray (xintsequence_ptr values)

 

Sets the foreground colors of the images of the items of the component, as either a uifcColor or a uifcColor.
Parameters:
values
Returns:



xboolDoesItemSelectWhenSelected ()

 
Returns:
Flag indicating whether the RadioGroup should generate a OnItemSelect() callback when the currently selected item is re-selected (xtrue) or whether such a selection should be ignored as the state has not changed.



voidSetItemSelectWhenSelected (xbool flag)

 

Sets flag indicating whether the RadioGroup should generate a OnItemSelect() callback when the currently selected item is re-selected (xtrue) or whether such a selection should be ignored as the state has not changed.
Parameters:
flag
Returns:



xstringsequence_ptrGetItemNameArray ()

 
Returns:
The names of the items of the component.



voidSetItemNameArray (xstringsequence_ptr values)

 

Sets the names of the items of the component.
Parameters:
values
Returns:



xboolCanResizeWhenNeeded ()

 
Returns:
Flag indicating whether the RadioGroup should attempt to resize when its contents are changed.



voidSetCanResizeWhenNeeded (xbool flag)

 

Sets flag indicating whether the RadioGroup should attempt to resize when its contents are changed.
Parameters:
flag
Returns:



xstringGetUnsetStateImage ()

 
Returns:
If the button style is BUTTON_STYLE_CHECK then this value is the name of the check mark image to be displayed next to the label of a button of the RadioGroup when the button is not the current selection.
This may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.



voidSetUnsetStateImage (xrstring value)

 

Sets if the button style is BUTTON_STYLE_CHECK then this value is the name of the check mark image to be displayed next to the label of a button of the RadioGroup when the button is not the current selection.
This may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.
Parameters:
value
Returns:



xstringsequence_ptrGetEnabledItemNameArray ()

 
Returns:
The names of the selectable items of the component. An empty array indicates that every item of the component may be selected.



voidSetEnabledItemNameArray (xstringsequence_ptr values)

 

Sets the names of the selectable items of the component. An empty array indicates that every item of the component may be selected.
Parameters:
values
Returns:



xstringGetMostRecentItemName ()

 
Returns:
The item which was beneath the pointer the last time the pointer was over the component.



xstringsequence_ptrGetItemTextArray ()

 
Returns:
The labels of the items of the component.



voidSetItemTextArray (xstringsequence_ptr values)

 

Sets the labels of the items of the component.
Parameters:
values
Returns:



xstringGetSetStateImage ()

 
Returns:
If the button style is BUTTON_STYLE_CHECK then this value is the name of the check mark image to be displayed next to the label of a button of the RadioGroup when the button is the current selection.
This may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.



voidSetSetStateImage (xrstring value)

 

Sets if the button style is BUTTON_STYLE_CHECK then this value is the name of the check mark image to be displayed next to the label of a button of the RadioGroup when the button is the current selection.
This may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.
Parameters:
value
Returns:



xintGetRows ()

 
Returns:
The number of rows of buttons of the RadioGroup when the orientation is ORIENTATION_VERTICAL.



voidSetRows (xint value)

 

Sets the number of rows of buttons of the RadioGroup when the orientation is ORIENTATION_VERTICAL.
Parameters:
value
Returns:



voidAddActionListener (uifcRadioGroupListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcRadioGroupAction action)

 


Parameters:
action
Returns:



voidCreateTimer (uifcRadioGroupTimer_ptr timer, xrstring timerName, xbool writeInTrail)

 


Parameters:
timer
timerName
writeInTrail
Returns:



voidStartTimer (xrstring timerName, xint duration)

 


Parameters:
timerName
duration
Returns:



voidStopTimer (xrstring timerName)

 


Parameters:
timerName
Returns: