Library | File

Class uifcSpinBox

# include <uifcSpinBox.h>

class uifcSpinBox
 : public virtual uifcRange_Controls
{
    xaideclare(uifcSpinBox)
    ...
};



Description





Method Summary

voidAddActionListener (uifcSpinBoxListener_ptr listener)
 
xboolCanWrap ()
 
voidChangeDoubleValue (xreal change)
 
voidChangeIntegerValue (xint change)
 
voidCreateTimer (uifcSpinBoxTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidDeletePopupMenu ()
 
xboolDoesAlwaysShowValueSign ()
 
xboolDoesDynamicUpdate ()
 
uifcAlignmentGetButtonPlacement ()
 
xintGetDigits ()
 
xstringGetDoubleFormat ()
 
xrealGetDoubleValue ()
 
xintGetFastSpinDelay ()
 
xrealGetFastSpinDoubleDelta ()
 
xintGetFastSpinIntegerDelta ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xrealGetMaximumDoubleValue ()
 
xrealGetMinimumDoubleValue ()
 
xintGetMinimumWidth ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
xrealGetSlowSpinDoubleDelta ()
 
xintGetSlowSpinIntegerDelta ()
 
xintGetSpinRate ()
 
uifcInputTypeGetValueType ()
 
xintGetWidth ()
 
xboolHasBorder ()
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
xboolIsEnabled ()
 
xboolIsInMixedState ()
 
voidPushAction (uifcSpinBoxAction action)
 
voidSetAlwaysShowValueSign (xbool flag)
 
voidSetButtonPlacement (uifcAlignment value)
 
voidSetCanWrap (xbool flag)
 
voidSetDigits (xint value)
 
voidSetDoubleFormat (xrstring value)
 
voidSetDoubleValue (xreal value)
 
voidSetDynamicUpdate (xbool flag)
 
voidSetEnabled (xbool flag)
 
voidSetFastSpinDelay (xint value)
 
voidSetFastSpinDoubleDelta (xreal value)
 
voidSetFastSpinIntegerDelta (xint value)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetHasBorder (xbool flag)
 
voidSetInMixedState (xbool flag)
 
voidSetMaximumDoubleValue (xreal value)
 
voidSetMinimumDoubleValue (xreal value)
 
voidSetMinimumWidth (xint value)
 
voidSetSlowSpinDoubleDelta (xreal value)
 
voidSetSlowSpinIntegerDelta (xint value)
 
voidSetSpinRate (xint value)
 
voidSetValueType (uifcInputType value)
 
voidSetWidth (xint value)
 
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 uifcRange_Controls:

GetMaximumIntegerValue, SetMaximumIntegerValue, GetIntegerValue, SetIntegerValue, GetMinimumIntegerValue, SetMinimumIntegerValue, GetFontName, SetFontName, GetFontClass, SetFontClass, GetFontSize, SetFontSize, GetHelpText, SetHelpText, GetFontStyle, SetFontStyle



Method Detail

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:



voidDeletePopupMenu ()

 

Delete a MenuPane from the component.
Returns:



uifcPoint_ptrGetScreenOrigin ()

 

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



voidChangeDoubleValue (xreal change)

 

Increment the DoubleValue attribute of the SpinBox by the given amount.
Parameters:
change
Returns:



uifcDimension_ptrGetFrameMinimumSize ()

 

Determine the minimum size 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:



voidChangeIntegerValue (xint change)

 

Increment the IntegerValue attribute of the component by the given amount.
Parameters:
change
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:



xboolDoesDynamicUpdate ()

 
Returns:
Flag indicating whether the SpinBox generates a OnChange() each time the value changes whilst the value is updating (xtrue) or whether only one OnChange() is generated when the updating is complete (xfalse).



voidSetDynamicUpdate (xbool flag)

 

Sets flag indicating whether the SpinBox generates a OnChange() each time the value changes whilst the value is updating (xtrue) or whether only one OnChange() is generated when the updating is complete (xfalse).
Parameters:
flag
Returns:



xrealGetMaximumDoubleValue ()

 
Returns:
The maximum double value of the SpinBox.



voidSetMaximumDoubleValue (xreal value)

 

Sets the maximum double value of the SpinBox.
Parameters:
value
Returns:



xintGetMinimumWidth ()

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



voidSetMinimumWidth (xint value)

 

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



xrealGetDoubleValue ()

 
Returns:
The double value of the SpinBox.



voidSetDoubleValue (xreal value)

 

Sets the double value of the SpinBox.
Parameters:
value
Returns:



xintGetSpinRate ()

 
Returns:
The number of increments per second when the SpinBox value is repeatedly updating.



voidSetSpinRate (xint value)

 

Sets the number of increments per second when the SpinBox value is repeatedly updating.
Parameters:
value
Returns:



xintGetSlowSpinIntegerDelta ()

 
Returns:
The slow increment to be used when the SpinBox value is a integer.



voidSetSlowSpinIntegerDelta (xint value)

 

Sets the slow increment to be used when the SpinBox value is a integer.
Parameters:
value
Returns:



xintGetFastSpinDelay ()

 
Returns:
The delay time in milliseconds during which the SpinBox uses the slow increment, before it then uses the fast increment to update the value.



voidSetFastSpinDelay (xint value)

 

Sets the delay time in milliseconds during which the SpinBox uses the slow increment, before it then uses the fast increment to update the value.
Parameters:
value
Returns:



xboolIsInMixedState ()

 
Returns:
Flag indicating whether the SpinBox 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 SpinBox it will automatically be reset to xfalse.



voidSetInMixedState (xbool flag)

 

Sets flag indicating whether the SpinBox 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 SpinBox it will automatically be reset to xfalse.
Parameters:
flag
Returns:



uifcAlignmentGetButtonPlacement ()

 
Returns:
The alignment of the buttons of the SpinBox.

ALIGNMENT_LEFT Left aligned
ALIGNMENT_RIGHT Right aligned



voidSetButtonPlacement (uifcAlignment value)

 

Sets the alignment of the buttons of the SpinBox.

ALIGNMENT_LEFT Left aligned
ALIGNMENT_RIGHT Right aligned

Parameters:
value
Returns:



xboolCanWrap ()

 
Returns:
Flag indicating whether the SpinBox value should wrap when it reaches an extreme of the range.



voidSetCanWrap (xbool flag)

 

Sets flag indicating whether the SpinBox value should wrap when it reaches an extreme of the range.
Parameters:
flag
Returns:



uifcInputTypeGetValueType ()

 
Returns:
The data-type of the SpinBox.

INPUT_TYPE_INTEGER An integer
INPUT_TYPE_DOUBLE A double



voidSetValueType (uifcInputType value)

 

Sets the data-type of the SpinBox.

INPUT_TYPE_INTEGER An integer
INPUT_TYPE_DOUBLE A double

Parameters:
value
Returns:



xintGetFastSpinIntegerDelta ()

 
Returns:
The fast increment to be used when the SpinBox value is a integer.



voidSetFastSpinIntegerDelta (xint value)

 

Sets the fast increment to be used when the SpinBox value is a integer.
Parameters:
value
Returns:



xboolDoesAlwaysShowValueSign ()

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



voidSetAlwaysShowValueSign (xbool flag)

 

Sets flag indicating whether to display the signum of numerical values in the SpinBox.
Parameters:
flag
Returns:



xintGetDigits ()

 
Returns:
The number of digits with which to display the value of the SpinBox.
A value of 0 indicates that this attribute should be ignored when formatting the value.



voidSetDigits (xint value)

 

Sets the number of digits with which to display the value of the SpinBox.
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 SpinBox 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 SpinBox.



voidSetDoubleFormat (xrstring value)

 

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



xrealGetSlowSpinDoubleDelta ()

 
Returns:
The slow increment to be used when the SpinBox value is a double.



voidSetSlowSpinDoubleDelta (xreal value)

 

Sets the slow increment to be used when the SpinBox value is a double.
Parameters:
value
Returns:



xrealGetFastSpinDoubleDelta ()

 
Returns:
The fast increment to be used when the SpinBox value is a double.



voidSetFastSpinDoubleDelta (xreal value)

 

Sets the fast increment to be used when the SpinBox value is a double.
Parameters:
value
Returns:



xboolIsEnabled ()

 
Returns:
Flag indicating whether the component is disabled (xfalse) or sensitive to user input (xtrue).



voidSetEnabled (xbool flag)

 

Sets flag indicating whether the component is disabled (xfalse) or sensitive to user input (xtrue).
Parameters:
flag
Returns:



xrealGetMinimumDoubleValue ()

 
Returns:
The minimum double value of the SpinBox.



voidSetMinimumDoubleValue (xreal value)

 

Sets the minimum double value of the SpinBox.
Parameters:
value
Returns:



xintGetWidth ()

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



voidSetWidth (xint value)

 

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



xboolHasBorder ()

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



voidSetHasBorder (xbool flag)

 

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



voidAddActionListener (uifcSpinBoxListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcSpinBoxAction action)

 


Parameters:
action
Returns:



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