Library | File

Class uifcInputPanel

# include <uifcInputPanel.h>

class uifcInputPanel
 : public virtual uifcText
{
    xaideclare(uifcInputPanel)
    ...
};



Description





Method Summary

voidAddActionListener (uifcInputPanelListener_ptr listener)
 
xboolCanDrawContentDisabled ()
 
xboolCanRedraw ()
 
voidCopySelectionToClipboard ()
 
voidCreateTimer (uifcInputPanelTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidCutSelectionToClipboard ()
 
voidDeletePopupMenu ()
 
xboolDoesActivateOnReturn ()
 
xboolDoesAllowReturnInput ()
 
xboolDoesAllowTabInput ()
 
xboolDoesAlwaysShowValueSign ()
 
xboolDoesAutoCompleteReplace ()
 
xboolDoesHighlightOnFocus ()
 
xboolDoesSizeByContents ()
 
xintGetAutoCompleteLength ()
 
xstringsequence_ptrGetAutoCompleteTextArray ()
 
xintGetCaretPosition ()
 
xintGetDigits ()
 
xstringGetDoubleFormat ()
 
xrealGetDoubleValue ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xintGetIntegerValue ()
 
xintGetLineLength (xint line)
 
xrealGetMaximumDoubleValue ()
 
xintGetMaximumIntegerValue ()
 
xrealGetMinimumDoubleValue ()
 
xintGetMinimumIntegerValue ()
 
xintGetMinimumWidth ()
 
xintGetPasswordCharacter ()
 
xstringGetPrompt ()
 
uifcReadingOrderGetReadingOrder ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
uifcPoint_ptrGetSelectedRange ()
 
xstringGetSelectedText ()
 
xstringGetStringValue ()
 
xintGetTextGravity ()
 
xstringGetTextValue ()
 
xintGetTextValueMaximumLength ()
 
uifcInputTypeGetValueType ()
 
xstringGetWideStringValue ()
 
xboolHasBorder ()
 
xboolHasTextChanged ()
 
voidInputBackspaceKeys (xint count)
 
voidInputDeleteKeys (xint count)
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
voidInsertTextIntoSelection (xrstring text)
 
xboolIsAutoCompleteCaseSensitive ()
 
xboolIsCaretVisible ()
 
xboolIsInMixedState ()
 
xboolIsPassword ()
 
xboolIsSelectionVisible ()
 
xboolIsWidthFixed ()
 
voidPasteClipboardToSelection ()
 
voidPushAction (uifcInputPanelAction action)
 
voidRedoLastUndo ()
 
voidReplaceSelectionWithText (xint start, xint end, xrstring text)
 
voidSelectAll ()
 
voidSetActivateOnReturn (xbool flag)
 
voidSetAllowReturnInput (xbool flag)
 
voidSetAllowTabInput (xbool flag)
 
voidSetAlwaysShowValueSign (xbool flag)
 
voidSetAutoCompleteCaseSensitive (xbool flag)
 
voidSetAutoCompleteLength (xint value)
 
voidSetAutoCompleteReplace (xbool flag)
 
voidSetAutoCompleteTextArray (xstringsequence_ptr values)
 
voidSetCanDrawContentDisabled (xbool flag)
 
voidSetCanRedraw (xbool flag)
 
voidSetCaretPosition (xint position)
 
voidSetCaretVisible (xbool flag)
 
voidSetDigits (xint value)
 
voidSetDoubleFormat (xrstring value)
 
voidSetDoubleValue (xreal value)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetHasBorder (xbool flag)
 
voidSetHasTextChanged (xbool flag)
 
voidSetHighlightOnFocus (xbool flag)
 
voidSetInMixedState (xbool flag)
 
voidSetIntegerValue (xint value)
 
voidSetMaximumDoubleValue (xreal value)
 
voidSetMaximumIntegerValue (xint value)
 
voidSetMinimumDoubleValue (xreal value)
 
voidSetMinimumIntegerValue (xint value)
 
voidSetMinimumWidth (xint value)
 
voidSetPassword (xbool flag)
 
voidSetPasswordCharacter (xint value)
 
voidSetPrompt (xrstring value)
 
voidSetReadingOrder (uifcReadingOrder value)
 
voidSetSelectedRange (uifcPoint_ptr value)
 
voidSetSelectionVisible (xbool flag)
 
voidSetSizeByContents (xbool flag)
 
voidSetStringValue (xrstring value)
 
voidSetTextGravity (xint value)
 
voidSetTextValue (xrstring value)
 
voidSetTextValueMaximumLength (xint value)
 
voidSetValueType (uifcInputType value)
 
voidSetWideStringValue (xrstring 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 uifcText:

GetFontName, SetFontName, GetFontClass, SetFontClass, GetFontSize, SetFontSize, IsEnabled, SetEnabled, GetHelpText, SetHelpText, GetWidth, SetWidth, GetFontStyle, SetFontStyle



Method Detail

uifcPoint_ptrGetFrameOrigin ()

 

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



xintGetCaretPosition ()

 

Get the caret position.
Returns:



voidInputBackspaceKeys (xint count)

 

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



voidUndoLastChange ()

 

Undo the last change applied to the 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:



xintInsertPopupMenu (uifcComponent_ptr component)

 

Add a MenuPane to be displayed when the user presses the right mouse button over the component.
Parameters:
component
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:



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:



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:



uifcPoint_ptrGetScreenOrigin ()

 

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



uifcRectangle_ptrGetFrameRectangle ()

 

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



voidSetCaretPosition (xint position)

 

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



xstringGetSelectedText ()

 

Get the selected text of the component.
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:



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:



uifcRectangle_ptrGetRectangleOfMonitor ()

 

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



xboolDoesActivateOnReturn ()

 
Returns:
Flag indicating whether a RETURN key press should generate a OnActivate() callback (xtrue) or whether it should cause the default button in the Dialog to be pressed (xfalse).



voidSetActivateOnReturn (xbool flag)

 

Sets flag indicating whether a RETURN key press should generate a OnActivate() callback (xtrue) or whether it should cause the default button in the Dialog to be pressed (xfalse).
Parameters:
flag
Returns:



xrealGetMaximumDoubleValue ()

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



voidSetMaximumDoubleValue (xreal value)

 

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



xintGetMinimumWidth ()

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



voidSetMinimumWidth (xint value)

 

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



xstringGetPrompt ()

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



voidSetPrompt (xrstring value)

 

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



xboolHasBorder ()

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



voidSetHasBorder (xbool flag)

 

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



xrealGetDoubleValue ()

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



voidSetDoubleValue (xreal value)

 

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



xboolDoesAllowReturnInput ()

 
Returns:
Flag indicating whether to allow RETURN key presses to be ignored by the InputPanel itself and instead passed to the application via a OnKeyDown() callback (xfalse) or whether they should be inserted into the text as a new-line character (xtrue).



voidSetAllowReturnInput (xbool flag)

 

Sets flag indicating whether to allow RETURN key presses to be ignored by the InputPanel itself and instead passed to the application via a OnKeyDown() callback (xfalse) or whether they should be inserted into the text as a new-line character (xtrue).
Parameters:
flag
Returns:



xboolCanDrawContentDisabled ()

 
Returns:
Flag indicating whether the images embedded in the text contents of the InputPanel should be greyed-out whenever the InputPanel is insensitive.



voidSetCanDrawContentDisabled (xbool flag)

 

Sets flag indicating whether the images embedded in the text contents of the InputPanel should be greyed-out whenever the InputPanel is insensitive.
Parameters:
flag
Returns:



xboolHasTextChanged ()

 
Returns:
Flag indicating whether the text contents of the InputPanel have been modified.
The InputPanel 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 InputPanel have been modified.
The InputPanel 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 InputPanel as a string.



voidSetStringValue (xrstring value)

 

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



xintGetMaximumIntegerValue ()

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



voidSetMaximumIntegerValue (xint value)

 

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



xboolDoesSizeByContents ()

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



voidSetSizeByContents (xbool flag)

 

Sets flag indicating whether the InputPanel 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 InputPanel 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 InputPanel should increase its width to accomodate its contents (xfalse) or whether it should maintain its width as the contents grow (xtrue).
Parameters:
flag
Returns:



xboolIsInMixedState ()

 
Returns:
Flag indicating whether the InputPanel has no value at this time and is therefore in an indeterminate "mixed" state.
If this attribute is set to xtrue then when the user enters a value in the InputPanel it will automatically be reset to xfalse.



voidSetInMixedState (xbool flag)

 

Sets flag indicating whether the InputPanel has no value at this time and is therefore in an indeterminate "mixed" state.
If this attribute is set to xtrue then when the user enters a value in the InputPanel it will automatically be reset to xfalse.
Parameters:
flag
Returns:



xboolDoesHighlightOnFocus ()

 
Returns:
Flag indicating whether the entire contents of the InputPanel should be selected whenever the InputPanel receives the keyboard input focus.



voidSetHighlightOnFocus (xbool flag)

 

Sets flag indicating whether the entire contents of the InputPanel should be selected whenever the InputPanel receives the keyboard input focus.
Parameters:
flag
Returns:



xboolIsPassword ()

 
Returns:
Flag indicating whether the component is used for password entry.



voidSetPassword (xbool flag)

 

Sets flag indicating whether the component is used for password entry.
Parameters:
flag
Returns:



xintGetIntegerValue ()

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



voidSetIntegerValue (xint value)

 

Sets the integer value of the contents of the InputPanel.
Parameters:
value
Returns:



xintGetMinimumIntegerValue ()

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



voidSetMinimumIntegerValue (xint value)

 

Sets the minimum integer value of the contents of the InputPanel.
Parameters:
value
Returns:



uifcInputTypeGetValueType ()

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

INPUT_TYPE_INTEGER An integer
INPUT_TYPE_DOUBLE A double
INPUT_TYPE_STRING A string
INPUT_TYPE_WIDESTRING A wide-string



voidSetValueType (uifcInputType value)

 

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

INPUT_TYPE_INTEGER An integer
INPUT_TYPE_DOUBLE A double
INPUT_TYPE_STRING A string
INPUT_TYPE_WIDESTRING A wide-string

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 InputPanel.



voidSetAlwaysShowValueSign (xbool flag)

 

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



voidSetDoubleFormat (xrstring value)

 

Sets the format of the contents of the InputPanel 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 InputPanel.
Parameters:
value
Returns:



xboolIsCaretVisible ()

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



voidSetCaretVisible (xbool flag)

 

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



xintGetTextValueMaximumLength ()

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



voidSetTextValueMaximumLength (xint value)

 

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



xboolIsSelectionVisible ()

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



voidSetSelectionVisible (xbool flag)

 

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



xboolCanRedraw ()

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



voidSetCanRedraw (xbool flag)

 

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



xstringsequence_ptrGetAutoCompleteTextArray ()

 
Returns:
The array of values to use for text matching in the InputPanel.



voidSetAutoCompleteTextArray (xstringsequence_ptr values)

 

Sets the array of values to use for text matching in the InputPanel.
Parameters:
values
Returns:



xrealGetMinimumDoubleValue ()

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



voidSetMinimumDoubleValue (xreal value)

 

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



xintGetPasswordCharacter ()

 
Returns:
The ASCII value of the character used for display when the InputPanel is being used for password entry.



voidSetPasswordCharacter (xint value)

 

Sets the ASCII value of the character used for display when the InputPanel is being used for password entry.
Parameters:
value
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 InputPanel, 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 InputPanel, 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:



xboolDoesAllowTabInput ()

 
Returns:
Flag indicating whether to allow TAB key presses to be ignored by the InputPanel itself and used for focus traversal (xfalse) or whether they should be inserted into the text as a tab character (xtrue).



voidSetAllowTabInput (xbool flag)

 

Sets flag indicating whether to allow TAB key presses to be ignored by the InputPanel itself and used for focus traversal (xfalse) or whether they should be inserted into the text as a tab character (xtrue).
Parameters:
flag
Returns:



xstringGetWideStringValue ()

 
Returns:
The contents of the InputPanel as a wide-string.



voidSetWideStringValue (xrstring value)

 

Sets the contents of the InputPanel as a wide-string.
Parameters:
value
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 InputPanel.



voidSetTextValue (xrstring value)

 

Sets the text contents of the InputPanel.
Parameters:
value
Returns:



voidAddActionListener (uifcInputPanelListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcInputPanelAction action)

 


Parameters:
action
Returns:



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