Library | File

Class uifcOptionMenu

# include <uifcOptionMenu.h>

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



Description





Method Summary

voidAddActionListener (uifcOptionMenuListener_ptr listener)
 
xboolCanDrawContentDisabled ()
 
xboolCanRedraw ()
 
xboolCanResizeWhenNeeded ()
 
xboolCanTruncateText ()
 
voidCopySelectionToClipboard ()
 
voidCreateTimer (uifcOptionMenuTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidCutSelectionToClipboard ()
 
voidDeleteGroupsByName (xstringsequence_ptr names)
 
voidDeleteItemsByIndex (xintsequence_ptr items)
 
voidDeleteItemsByName (xstringsequence_ptr names)
 
voidDeletePopupMenu ()
 
xboolDoesAlwaysShowValueSign ()
 
xboolDoesAutoCompleteReplace ()
 
xboolDoesAutoOpen ()
 
xboolDoesOpenOnMnemonic ()
 
xboolDoesSizeByContents ()
 
xintGetAutoCompleteLength ()
 
xintGetCaretPosition ()
 
xstringGetDefaultHelpText ()
 
xintGetDigits ()
 
xstringGetDoubleFormat ()
 
xrealGetDoubleValue ()
 
xrealsequence_ptrGetDoubleValueArray ()
 
xintGetDropDownHeight ()
 
xstringGetDropItemName ()
 
xstringsequence_ptrGetEnabledItemNameArray ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xstringsequence_ptrGetGroupHelpTextArray ()
 
xstringsequence_ptrGetGroupImageArray ()
 
xstringsequence_ptrGetGroupItemNameArray ()
 
xstringsequence_ptrGetGroupNameArray ()
 
xintsequence_ptrGetGroupOpenArray ()
 
xstringsequence_ptrGetGroupTextArray ()
 
xstringGetImage ()
 
xintGetImageHeight ()
 
xintGetImageWidth ()
 
xintGetIntegerValue ()
 
xintsequence_ptrGetIntegerValueArray ()
 
uifcColors_ptrGetItemBackgroundColorArray ()
 
xstringsequence_ptrGetItemHelpTextArray ()
 
xstringsequence_ptrGetItemImageArray ()
 
xstringsequence_ptrGetItemNameArray ()
 
xstringsequence_ptrGetItemTextArray ()
 
uifcColors_ptrGetItemTextColorArray ()
 
xintGetLineLength (xint line)
 
xrealGetMaximumDoubleValue ()
 
xintGetMaximumIntegerValue ()
 
xintGetMaximumWidth ()
 
xrealGetMinimumDoubleValue ()
 
xintGetMinimumIntegerValue ()
 
xintGetMinimumWidth ()
 
xstringGetMostRecentItemName ()
 
xstringGetPrompt ()
 
uifcReadingOrderGetReadingOrder ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
xstringsequence_ptrGetSelectedItemNameArray ()
 
uifcPoint_ptrGetSelectedRange ()
 
xstringGetSelectedText ()
 
xstringGetStringValue ()
 
xstringsequence_ptrGetStringValueArray ()
 
xintGetTextGravity ()
 
xstringGetTextValue ()
 
xintGetTextValueMaximumLength ()
 
uifcInputTypeGetValueType ()
 
xintGetWidth ()
 
xboolHasBorder ()
 
xboolHasTextChanged ()
 
voidInputBackspaceKeys (xint count)
 
voidInputDeleteKeys (xint count)
 
voidInsertGroup (uifcOptionMenuGroup_ptr optionmenugroup, uifcItemPositionData_ptr item_pos_data)
 
voidInsertItem (uifcOptionMenuItem_ptr optionmenuitem, uifcItemPositionData_ptr item_pos_data)
 
voidInsertItems (uifcOptionMenuItems_ptr optionmenuitems, uifcItemPositionData_ptr posData)
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
voidInsertTextIntoSelection (xrstring text)
 
xboolIsAutoCompleteCaseSensitive ()
 
xboolIsCaretVisible ()
 
xboolIsComboBox ()
 
xboolIsSelectionVisible ()
 
xboolIsWidthFixed ()
 
voidMoveItemsByIndex (xint item, xintsequence_ptr items)
 
voidMoveItemsByName (xrstring name, xstringsequence_ptr names)
 
voidOpenPopup ()
 
voidPasteClipboardToSelection ()
 
voidPushAction (uifcOptionMenuAction action)
 
voidRedoLastUndo ()
 
voidReplaceSelectionWithText (xint start, xint end, xrstring text)
 
voidSelectAll ()
 
voidSetAlwaysShowValueSign (xbool flag)
 
voidSetAutoCompleteCaseSensitive (xbool flag)
 
voidSetAutoCompleteLength (xint value)
 
voidSetAutoCompleteReplace (xbool flag)
 
voidSetAutoOpen (xbool flag)
 
voidSetCanDrawContentDisabled (xbool flag)
 
voidSetCanRedraw (xbool flag)
 
voidSetCanResizeWhenNeeded (xbool flag)
 
voidSetCanTruncateText (xbool flag)
 
voidSetCaretPosition (xint position)
 
voidSetCaretVisible (xbool flag)
 
voidSetComboBox (xbool flag)
 
voidSetDefaultHelpText (xrstring value)
 
voidSetDigits (xint value)
 
voidSetDoubleFormat (xrstring value)
 
voidSetDoubleValue (xreal value)
 
voidSetDoubleValueArray (xrealsequence_ptr values)
 
voidSetDropDownHeight (xint value)
 
voidSetEnabledItemNameArray (xstringsequence_ptr values)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetGroupHelpTextArray (xstringsequence_ptr values)
 
voidSetGroupImageArray (xstringsequence_ptr values)
 
voidSetGroupItemNameArray (xstringsequence_ptr values)
 
voidSetGroupNameArray (xstringsequence_ptr values)
 
voidSetGroupOpenArray (xintsequence_ptr values)
 
voidSetGroupTextArray (xstringsequence_ptr values)
 
voidSetHasBorder (xbool flag)
 
voidSetHasTextChanged (xbool flag)
 
voidSetImage (xrstring value)
 
voidSetImageHeight (xint value)
 
voidSetImageWidth (xint value)
 
voidSetIntegerValue (xint value)
 
voidSetIntegerValueArray (xintsequence_ptr values)
 
voidSetItemBackgroundColorArray (uifcColors_ptr colors)
 
voidSetItemHelpTextArray (xstringsequence_ptr values)
 
voidSetItemImageArray (xstringsequence_ptr values)
 
voidSetItemNameArray (xstringsequence_ptr values)
 
voidSetItemTextArray (xstringsequence_ptr values)
 
voidSetItemTextColorArray (uifcColors_ptr colors)
 
voidSetMaximumDoubleValue (xreal value)
 
voidSetMaximumIntegerValue (xint value)
 
voidSetMaximumWidth (xint value)
 
voidSetMinimumDoubleValue (xreal value)
 
voidSetMinimumIntegerValue (xint value)
 
voidSetMinimumWidth (xint value)
 
voidSetOpenOnMnemonic (xbool flag)
 
voidSetPrompt (xrstring value)
 
voidSetReadingOrder (uifcReadingOrder value)
 
voidSetSelectedItemNameArray (xstringsequence_ptr values)
 
voidSetSelectedRange (uifcPoint_ptr value)
 
voidSetSelectionVisible (xbool flag)
 
voidSetSizeByContents (xbool flag)
 
voidSetStringValue (xrstring value)
 
voidSetStringValueArray (xstringsequence_ptr values)
 
voidSetTextGravity (xint value)
 
voidSetTextValue (xrstring value)
 
voidSetTextValueMaximumLength (xint value)
 
voidSetValueType (uifcInputType value)
 
voidSetWidth (xint value)
 
voidSetWidthFixed (xbool flag)
 
voidStartTimer (xrstring timerName, xint duration)
 
voidStopTimer (xrstring timerName)
 
voidUndoLastChange ()
 


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

voidInsertItem (uifcOptionMenuItem_ptr optionmenuitem, uifcItemPositionData_ptr item_pos_data)

 


Parameters:
optionmenuitem
item_pos_data
Returns:



uifcPoint_ptrGetFrameOrigin ()

 

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



voidDeleteGroupsByName (xstringsequence_ptr names)

 

Delete groups from the component.
Parameters:
names
Returns:



xintGetCaretPosition ()

 

Get the caret position.
Returns:



voidOpenPopup ()

 

Display the drop-down List of the OptionMenu.
Returns:



voidInputBackspaceKeys (xint count)

 

Execute a number of BACKSPACE key presses in the component.
Parameters:
count
Returns:



voidReplaceSelectionWithText (xint start, xint end, xrstring text)

 

Replace the text between the start and end caret positions with the given text.
Parameters:
start
end
text
Returns:



voidInsertTextIntoSelection (xrstring text)

 

Insert the given text at the current caret position, replacing any selected text.
Parameters:
text
Returns:



xintGetLineLength (xint line)

 

Get the length of the given line, i.e. the number of characters in it.
Parameters:
line
Returns:



voidMoveItemsByName (xrstring name, xstringsequence_ptr names)

 

Reorders the items of the component so that the given array of items are placed in the given order (implied by the order of names in the array) immediately after the named item. When the items are reordered any item-related data is also reordered, i.e. the labels, help-texts, states, foreground and background colors, etc.
Parameters:
name
names
Returns:



voidSelectAll ()

 

Select all the text of the TextArea. The use of this operation has been superceded by SelectedRange operation is provided for backwards compatibility only.
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:



voidUndoLastChange ()

 

Undo the last change applied to the text.
Returns:



voidInsertGroup (uifcOptionMenuGroup_ptr optionmenugroup, uifcItemPositionData_ptr item_pos_data)

 


Parameters:
optionmenugroup
item_pos_data
Returns:



voidMoveItemsByIndex (xint item, xintsequence_ptr items)

 

Reorders the items of the component so that the given array of items are placed in the given order (implied by the order of names in the array) immediately after the named item indices. When the items are reordered any item-related data is also reordered, i.e. the labels, help-texts, states, foreground and background colors, etc.
Parameters:
item
items
Returns:



voidSetSelectedRange (uifcPoint_ptr value)

 

Select the text between the start and end caret positions. Note: If start < 0 then the selection is removed, forcing the selection anchor to move to the caret position. If end < 0, the entire text is selected from the start position onwards.
Parameters:
value
Returns:



voidPasteClipboardToSelection ()

 

Replace the selected text with the contents of the system clipboard.
Returns:



uifcDimension_ptrGetFrameSize ()

 

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



voidDeletePopupMenu ()

 

Delete a MenuPane from the component.
Returns:



uifcPoint_ptrGetScreenOrigin ()

 

Determine the screen position of the component, in pixels.
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:



voidCopySelectionToClipboard ()

 

Copy the selected text into the system clipboard.
Returns:



voidCutSelectionToClipboard ()

 

Copy the selected text into the system clipboard and then delete the selected text.
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:



voidInputDeleteKeys (xint count)

 

Execute a number of DELETE key presses in the component.
Parameters:
count
Returns:



voidSetCaretPosition (xint position)

 

Set the caret and the selection anchor positions.
Parameters:
position
Returns:



voidInsertItems (uifcOptionMenuItems_ptr optionmenuitems, uifcItemPositionData_ptr posData)

 


Parameters:
optionmenuitems
posData
Returns:



uifcRectangle_ptrGetFrameRectangle ()

 

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



voidDeleteItemsByName (xstringsequence_ptr names)

 

Delete items from the component.
Parameters:
names
Returns:



voidDeleteItemsByIndex (xintsequence_ptr items)

 

Delete items from the component using item indices.
Parameters:
items
Returns:



uifcPoint_ptrGetSelectedRange ()

 

Get the caret positions of the start and the end of the selected text.
Returns:



uifcDimension_ptrGetFrameMinimumSize ()

 

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



uifcRectangle_ptrGetScreenRectangle ()

 

Determine the size and screen position of the component, in pixels.
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:



voidRedoLastUndo ()

 

Repeat the last change which was undone.
Returns:



xstringGetSelectedText ()

 

Get the selected text of the component.
Returns:



uifcRectangle_ptrGetRectangleOfMonitor ()

 

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



xrealGetMaximumDoubleValue ()

 
Returns:
The maximum double value of the contents of the OptionMenu.



voidSetMaximumDoubleValue (xreal value)

 

Sets the maximum double value of the contents of the OptionMenu.
Parameters:
value
Returns:



xintGetWidth ()

 
Returns:
The width of the OptionMenu, in character widths.



voidSetWidth (xint value)

 

Sets the width of the OptionMenu, in character widths.
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:



xintGetMinimumWidth ()

 
Returns:
The minimum width of the OptionMenu, in character widths.



voidSetMinimumWidth (xint value)

 

Sets the minimum width of the OptionMenu, in character widths.
Parameters:
value
Returns:



xrealGetDoubleValue ()

 
Returns:
The double value of the contents of the OptionMenu.



voidSetDoubleValue (xreal value)

 

Sets the double value of the contents of the OptionMenu.
Parameters:
value
Returns:



xstringsequence_ptrGetGroupItemNameArray ()

 
Returns:
The names of the first item of each of the groups of the OptionMenu.



voidSetGroupItemNameArray (xstringsequence_ptr values)

 

Sets the names of the first item of each of the groups of the OptionMenu.
Parameters:
values
Returns:



xstringsequence_ptrGetGroupNameArray ()

 
Returns:
The names of the group headers of the OptionMenu.



voidSetGroupNameArray (xstringsequence_ptr values)

 

Sets the names of the group headers of the OptionMenu.
Parameters:
values
Returns:



xboolCanDrawContentDisabled ()

 
Returns:
Flag indicating whether the images embedded in the label of an item of the OptionMenu should be greyed-out whenever the item is insensitive.



voidSetCanDrawContentDisabled (xbool flag)

 

Sets flag indicating whether the images embedded in the label of an item of the OptionMenu should be greyed-out whenever the item is insensitive.
Parameters:
flag
Returns:



xstringGetDefaultHelpText ()

 
Returns:
The popup help-text to be displayed whilst the pointer is over the OptionMenu but is not over any of the items of the drop-down list.



voidSetDefaultHelpText (xrstring value)

 

Sets the popup help-text to be displayed whilst the pointer is over the OptionMenu but is not over any of the items of the drop-down list.
Parameters:
value
Returns:



xboolIsComboBox ()

 
Returns:
Flag indicating whether the text contents of the OptionMenu may be modified by the user.



voidSetComboBox (xbool flag)

 

Sets flag indicating whether the text contents of the OptionMenu may be modified by the user.
Parameters:
flag
Returns:



xintGetDropDownHeight ()

 
Returns:
The number of visible rows of the drop-down list of the OptionMenu.



voidSetDropDownHeight (xint value)

 

Sets the number of visible rows of the drop-down list of the OptionMenu.
Parameters:
value
Returns:



xboolHasTextChanged ()

 
Returns:
Flag indicating whether the text contents of the OptionMenu have been modified.
The OptionMenu sets the value of this attribute to xfalse when the entire text is modified programmatically. The value is then automatically set to xtrue when the text is next changed.
This flag is provided for application use so that any "save if needed" functionality can be implemented for text editors. In this case the value should be set to xfalse once the text has been saved.



voidSetHasTextChanged (xbool flag)

 

Sets flag indicating whether the text contents of the OptionMenu have been modified.
The OptionMenu sets the value of this attribute to xfalse when the entire text is modified programmatically. The value is then automatically set to xtrue when the text is next changed.
This flag is provided for application use so that any "save if needed" functionality can be implemented for text editors. In this case the value should be set to xfalse once the text has been saved.
Parameters:
flag
Returns:



xstringGetStringValue ()

 
Returns:
The contents of the OptionMenu as a string.



voidSetStringValue (xrstring value)

 

Sets the contents of the OptionMenu as a string.
Parameters:
value
Returns:



xintsequence_ptrGetGroupOpenArray ()

 
Returns:
The expanded / collapsed state of each of the group headers of the OptionMenu.



voidSetGroupOpenArray (xintsequence_ptr values)

 

Sets the expanded / collapsed state of each of the group headers of the OptionMenu.
Parameters:
values
Returns:



xstringGetImage ()

 
Returns:
The image to be displayed to the left of the value of an editable OptionMenu



voidSetImage (xrstring value)

 

Sets the image to be displayed to the left of the value of an editable OptionMenu
Parameters:
value
Returns:



xintGetMaximumIntegerValue ()

 
Returns:
The maximum integer value of the contents of the OptionMenu.



voidSetMaximumIntegerValue (xint value)

 

Sets the maximum integer value of the contents of the OptionMenu.
Parameters:
value
Returns:



xboolDoesSizeByContents ()

 
Returns:
Flag indicating whether the OptionMenu should be sized according to its contents (xtrue) or whether it should use its Width attribute.



voidSetSizeByContents (xbool flag)

 

Sets flag indicating whether the OptionMenu should be sized according to its contents (xtrue) or whether it should use its Width attribute.
Parameters:
flag
Returns:



xboolIsWidthFixed ()

 
Returns:
Flag indicating whether the OptionMenu should increase its width to accomodate its contents (xfalse) or whether it should maintain its width as the contents grow (xtrue).



voidSetWidthFixed (xbool flag)

 

Sets flag indicating whether the OptionMenu should increase its width to accomodate its contents (xfalse) or whether it should maintain its width as the contents grow (xtrue).
Parameters:
flag
Returns:



xstringsequence_ptrGetStringValueArray ()

 
Returns:
The string items of the component.



voidSetStringValueArray (xstringsequence_ptr values)

 

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



xrealsequence_ptrGetDoubleValueArray ()

 
Returns:
The double items of the component.



voidSetDoubleValueArray (xrealsequence_ptr values)

 

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



xintGetIntegerValue ()

 
Returns:
The integer value of the contents of the OptionMenu.



voidSetIntegerValue (xint value)

 

Sets the integer value of the contents of the OptionMenu.
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:



xintGetMinimumIntegerValue ()

 
Returns:
The minimum integer value of the contents of the OptionMenu.



voidSetMinimumIntegerValue (xint value)

 

Sets the minimum integer value of the contents of the OptionMenu.
Parameters:
value
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:



uifcInputTypeGetValueType ()

 
Returns:
The data-type of the contents of the OptionMenu.

INPUT_TYPE_INTEGER An integer using IntegerValueArray attribute
INPUT_TYPE_DOUBLE A double using DoubleValueArray attribute
INPUT_TYPE_STRING A string using StringValueArray attribute
INPUT_TYPE_WIDESTRING A wide-string using both ItemNameArray attribute and ItemTextArray attribute



voidSetValueType (uifcInputType value)

 

Sets the data-type of the contents of the OptionMenu.

INPUT_TYPE_INTEGER An integer using IntegerValueArray attribute
INPUT_TYPE_DOUBLE A double using DoubleValueArray attribute
INPUT_TYPE_STRING A string using StringValueArray attribute
INPUT_TYPE_WIDESTRING A wide-string using both ItemNameArray attribute and ItemTextArray attribute

Parameters:
value
Returns:



uifcReadingOrderGetReadingOrder ()

 
Returns:
If the current locale supports multi-directional text (e.g. Hebrew) then this flag indicates the reading order of the text contents of the InputPanel, otherwise the attribute value is ignored.

READING_ORDER_LEFT_TO_RIGHT The text is displayed left-to-right
READING_ORDER_RIGHT_TO_LEFT The text is displayed right-to-left



voidSetReadingOrder (uifcReadingOrder value)

 

Sets if the current locale supports multi-directional text (e.g. Hebrew) then this flag indicates the reading order of the text contents of the InputPanel, otherwise the attribute value is ignored.

READING_ORDER_LEFT_TO_RIGHT The text is displayed left-to-right
READING_ORDER_RIGHT_TO_LEFT The text is displayed right-to-left

Parameters:
value
Returns:



xboolDoesAlwaysShowValueSign ()

 
Returns:
Flag indicating whether to display the signum of numerical values in the OptionMenu.



voidSetAlwaysShowValueSign (xbool flag)

 

Sets flag indicating whether to display the signum of numerical values in the OptionMenu.
Parameters:
flag
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:



xintGetAutoCompleteLength ()

 
Returns:
The minimum number of characters which must match before any text matching is carried out.



voidSetAutoCompleteLength (xint value)

 

Sets the minimum number of characters which must match before any text matching is carried out.
Parameters:
value
Returns:



xintGetDigits ()

 
Returns:
The number of digits to be displayed if the contents are being treated as a number.
A value of 0 indicates that this attribute should be ignored when formatting the value.



voidSetDigits (xint value)

 

Sets the number of digits to be displayed if the contents are being treated as a number.
A value of 0 indicates that this attribute should be ignored when formatting the value.
Parameters:
value
Returns:



xstringGetDoubleFormat ()

 
Returns:
The format of the contents of the OptionMenu if they are being treated as a double.
The value of this attribute is a C formatting string which can handle the precision and value of the contents of the OptionMenu.



voidSetDoubleFormat (xrstring value)

 

Sets the format of the contents of the OptionMenu if they are being treated as a double.
The value of this attribute is a C formatting string which can handle the precision and value of the contents of the OptionMenu.
Parameters:
value
Returns:



xintGetImageWidth ()

 
Returns:
The width of the images of the OptionMenu, in pixels



voidSetImageWidth (xint value)

 

Sets the width of the images of the OptionMenu, in pixels
Parameters:
value
Returns:



uifcColors_ptrGetItemBackgroundColorArray ()

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



voidSetItemBackgroundColorArray (uifcColors_ptr colors)

 

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



xboolIsCaretVisible ()

 
Returns:
Flag indicating whether the input caret should be displayed when the OptionMenu has the keyboard input focus.



voidSetCaretVisible (xbool flag)

 

Sets flag indicating whether the input caret should be displayed when the OptionMenu has the keyboard input focus.
Parameters:
flag
Returns:



xboolCanTruncateText ()

 
Returns:
Flag indicating whether any leading spaces of the label of the selected item of the OptionMenu should be ignored when displaying the selection in the top-line of the component.



voidSetCanTruncateText (xbool flag)

 

Sets flag indicating whether any leading spaces of the label of the selected item of the OptionMenu should be ignored when displaying the selection in the top-line of the component.
Parameters:
flag
Returns:



xboolDoesAutoOpen ()

 
Returns:
Flag indicating whether the OptionMenu should open automatically when the arrow button is pressed.



voidSetAutoOpen (xbool flag)

 

Sets flag indicating whether the OptionMenu should open automatically when the arrow button is pressed.
Parameters:
flag
Returns:



xintGetMaximumWidth ()

 
Returns:
The maximum width of the drop-down of the OptionMenu, in character widths.
A value of 0 indicates that the drop-down should size itself based upon the OptionMenu.



voidSetMaximumWidth (xint value)

 

Sets the maximum width of the drop-down of the OptionMenu, in character widths.
A value of 0 indicates that the drop-down should size itself based upon the OptionMenu.
Parameters:
value
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:



xintGetTextValueMaximumLength ()

 
Returns:
The maximum length of the text contents of the OptionMenu.



voidSetTextValueMaximumLength (xint value)

 

Sets the maximum length of the text contents of the OptionMenu.
Parameters:
value
Returns:



xintGetImageHeight ()

 
Returns:
The height of the images of the OptionMenu, in pixels



voidSetImageHeight (xint value)

 

Sets the height of the images of the OptionMenu, in pixels
Parameters:
value
Returns:



xboolIsSelectionVisible ()

 
Returns:
Flag indicating whether the selected text should be drawn highlighted when the OptionMenu does not have the keyboard input focus.



voidSetSelectionVisible (xbool flag)

 

Sets flag indicating whether the selected text should be drawn highlighted when the OptionMenu does not have the keyboard input focus.
Parameters:
flag
Returns:



xboolCanResizeWhenNeeded ()

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



voidSetCanResizeWhenNeeded (xbool flag)

 

Sets flag indicating whether the OptionMenu should attempt to resize when its contents are changed.
Parameters:
flag
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:



xboolCanRedraw ()

 
Returns:
Flag indicating whether redraws are permitted in the OptionMenu.



voidSetCanRedraw (xbool flag)

 

Sets flag indicating whether redraws are permitted in the OptionMenu.
Parameters:
flag
Returns:



xstringsequence_ptrGetGroupHelpTextArray ()

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



voidSetGroupHelpTextArray (xstringsequence_ptr values)

 

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



xstringGetMostRecentItemName ()

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



xboolDoesOpenOnMnemonic ()

 
Returns:
Flag indicating whether the OptionMenu should open automatically when the menu is opened via a mnemonic.



voidSetOpenOnMnemonic (xbool flag)

 

Sets flag indicating whether the OptionMenu should open automatically when the menu is opened via a mnemonic.
Parameters:
flag
Returns:



xstringGetPrompt ()

 
Returns:
The text to be displayed in the OptionMenu when the component does not have the focus and its contents are empty.



voidSetPrompt (xrstring value)

 

Sets the text to be displayed in the OptionMenu when the component does not have the focus and its contents are empty.
Parameters:
value
Returns:



xrealGetMinimumDoubleValue ()

 
Returns:
The minimum double value of the contents of the OptionMenu.



voidSetMinimumDoubleValue (xreal value)

 

Sets the minimum double value of the contents of the OptionMenu.
Parameters:
value
Returns:



xstringsequence_ptrGetGroupTextArray ()

 
Returns:
The labels of the group headers of the OptionMenu.



voidSetGroupTextArray (xstringsequence_ptr values)

 

Sets the labels of the group headers of the OptionMenu.
Parameters:
values
Returns:



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:



xboolIsAutoCompleteCaseSensitive ()

 
Returns:
Flag indicating whether text matching is case-sensitive (xtrue) or whether it is irrespective of case (xfalse).



voidSetAutoCompleteCaseSensitive (xbool flag)

 

Sets flag indicating whether text matching is case-sensitive (xtrue) or whether it is irrespective of case (xfalse).
Parameters:
flag
Returns:



xintGetTextGravity ()

 
Returns:
The gravity of the OptionMenu, which is used to determine where the caret should be placed after the contents are modified.

TEXT_GRAVITY_START The caret is placed at the start of the text
TEXT_GRAVITY_END The caret is placed at the end of the text



voidSetTextGravity (xint value)

 

Sets the gravity of the OptionMenu, which is used to determine where the caret should be placed after the contents are modified.

TEXT_GRAVITY_START The caret is placed at the start of the text
TEXT_GRAVITY_END The caret is placed at the end of the text

Parameters:
value
Returns:



xstringsequence_ptrGetGroupImageArray ()

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



voidSetGroupImageArray (xstringsequence_ptr values)

 

Sets the images of the group headers of the OptionMenu.
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:



xboolHasBorder ()

 
Returns:
Flag indicating whether the OptionMenu has a decorated shadow border.



voidSetHasBorder (xbool flag)

 

Sets flag indicating whether the OptionMenu has a decorated shadow border.
Parameters:
flag
Returns:



xintsequence_ptrGetIntegerValueArray ()

 
Returns:
The integer items of the component.



voidSetIntegerValueArray (xintsequence_ptr values)

 

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



xboolDoesAutoCompleteReplace ()

 
Returns:
Flag indicating whether any matched text should be completely selected when a match occurs (xtrue) or whether only the appended text should be selected (xfalse).



voidSetAutoCompleteReplace (xbool flag)

 

Sets flag indicating whether any matched text should be completely selected when a match occurs (xtrue) or whether only the appended text should be selected (xfalse).
Parameters:
flag
Returns:



xstringGetTextValue ()

 
Returns:
The text contents of the OptionMenu if the OptionMenu is editable.



voidSetTextValue (xrstring value)

 

Sets the text contents of the OptionMenu if the OptionMenu is editable.
Parameters:
value
Returns:



voidAddActionListener (uifcOptionMenuListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcOptionMenuAction action)

 


Parameters:
action
Returns:



voidCreateTimer (uifcOptionMenuTimer_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: