Library | File

Class uifcCascadeButton

# include <uifcCascadeButton.h>

class uifcCascadeButton
 : public virtual uifcButtonBase
{
    xaideclare(uifcCascadeButton)
    ...
};



Description





Method Summary

voidAddActionListener (uifcCascadeButtonListener_ptr listener)
 
voidCreateTimer (uifcCascadeButtonTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
xboolDoesAutoClose ()
 
xboolDoesReplayDismissEvent ()
 
uifcLabelAlignmentGetButtonPlacement ()
 
xstringGetCascadeHelpText ()
 
uifcCheckStateGetCheckedState ()
 
xstringGetChildMenuName ()
 
xstringGetDefaultHelpText ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
uifcKey_ptrGetKeyPressed ()
 
uifcOrientationGetOrientation ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
uifcDimension_ptrGetTextSize (xrstring str)
 
xintIsMenuEnabled ()
 
xboolIsSplitButton ()
 
xboolIsSplitCheckButton ()
 
voidPushAction (uifcCascadeButtonAction action)
 
voidSetAutoClose (xbool flag)
 
voidSetButtonPlacement (uifcLabelAlignment value)
 
voidSetCascadeHelpText (xrstring value)
 
voidSetCheckedState (uifcCheckState value)
 
voidSetChildMenuName (xrstring value)
 
voidSetDefaultHelpText (xrstring value)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetKeyPressed (uifcKey_ptr key)
 
voidSetMenuEnabled (xint value)
 
voidSetOrientation (uifcOrientation value)
 
voidSetReplayDismissEvent (xbool flag)
 
voidSetSplitButton (xbool flag)
 
voidSetSplitCheckButton (xbool flag)
 
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 uifcButtonBase:

GetImageColor, SetImageColor, GetAcceleratorKey, SetAcceleratorKey, GetDragCursorImage, SetDragCursorImage, GetImage, SetImage, GetTextAlignment, SetTextAlignment, GetButtonStyle, SetButtonStyle, CanWrap, SetCanWrap, GetTextFormat, SetTextFormat, GetDragNotValidCursorImage, SetDragNotValidCursorImage, GetContentArrangement, SetContentArrangement, DoesAllowKeyboardInput, SetAllowKeyboardInput, GetFontName, SetFontName, GetFontClass, SetFontClass, IsValidDragSite, SetValidDragSite, CanTruncateText, SetCanTruncateText, CanResizeWhenNeeded, SetCanResizeWhenNeeded, GetFontSize, SetFontSize, IsEnabled, SetEnabled, GetHelpText, SetHelpText, GetText, SetText, GetFontStyle, SetFontStyle, GetImageBackgroundColor, SetImageBackgroundColor, GetAcceleratorText



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:



uifcPoint_ptrGetFrameOrigin ()

 

Determine the position of the component, in pixels, relative to its parent.
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:



uifcDimension_ptrGetTextSize (xrstring str)

 

Get the size in pixels of the given text string.
Parameters:
str
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:



uifcDimension_ptrGetFrameSize ()

 

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



uifcRectangle_ptrGetFrameRectangle ()

 

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



xstringGetDefaultHelpText ()

 
Returns:
The popup help-text to be displayed over the button part of a split CascadeButton.



voidSetDefaultHelpText (xrstring value)

 

Sets the popup help-text to be displayed over the button part of a split CascadeButton.
Parameters:
value
Returns:



xstringGetChildMenuName ()

 
Returns:
The name of the MenuPane to be displayed when the CascadeButton is activated.
If this value is "" then the value of the PopupMenuName attribute is used instead.



voidSetChildMenuName (xrstring value)

 

Sets the name of the MenuPane to be displayed when the CascadeButton is activated.
If this value is "" then the value of the PopupMenuName attribute is used instead.
Parameters:
value
Returns:



uifcOrientationGetOrientation ()

 
Returns:
The orientation of the CascadeButton.

ORIENTATION_HORIZONTAL The child menu opens in a horizontal direction, with the arrow pointing to the right
ORIENTATION_VERTICAL The child menu opens in a vertical direction, with the arrow pointing downwards



voidSetOrientation (uifcOrientation value)

 

Sets the orientation of the CascadeButton.

ORIENTATION_HORIZONTAL The child menu opens in a horizontal direction, with the arrow pointing to the right
ORIENTATION_VERTICAL The child menu opens in a vertical direction, with the arrow pointing downwards

Parameters:
value
Returns:



xintIsMenuEnabled ()

 
Returns:
When SplitButton attribute is xtrue, this attribute controls the sensitivity of the arrow part of the control.
If the value is set to 2 then the sensitivity is instead taken from the value of Enabled attribute to provide backwards compatibility with previous versions.



voidSetMenuEnabled (xint value)

 

Sets when SplitButton attribute is xtrue, this attribute controls the sensitivity of the arrow part of the control.
If the value is set to 2 then the sensitivity is instead taken from the value of Enabled attribute to provide backwards compatibility with previous versions.
Parameters:
value
Returns:



uifcKey_ptrGetKeyPressed ()

 
Returns:
The key pressed which generated a OnKeyDown(). To indicate to the component that the key should not be passed on to, for example, the mapkey buffer you should modify this attribute to KEY_NONE at the end of your OnKeyDown() callback.



voidSetKeyPressed (uifcKey_ptr key)

 

Sets the key pressed which generated a OnKeyDown(). To indicate to the component that the key should not be passed on to, for example, the mapkey buffer you should modify this attribute to KEY_NONE at the end of your OnKeyDown() callback.
Parameters:
key
Returns:



xboolDoesReplayDismissEvent ()

 
Returns:
Flag indicating whether the CascadeButton should replay a mouse event which occured outside the MenuPane of the CascadeButton, causing the MenuPane to be dismissed and the CascadeButton to close. The mouse event is replayed to the component beneath the cursor, where it would otherwise have been sent, originally.



voidSetReplayDismissEvent (xbool flag)

 

Sets flag indicating whether the CascadeButton should replay a mouse event which occured outside the MenuPane of the CascadeButton, causing the MenuPane to be dismissed and the CascadeButton to close. The mouse event is replayed to the component beneath the cursor, where it would otherwise have been sent, originally.
Parameters:
flag
Returns:



uifcLabelAlignmentGetButtonPlacement ()

 
Returns:
The justification of the label of the CascadeButton

LABEL_ALIGNMENT_LEFT To the left of the split / to the left of the arrow
LABEL_ALIGNMENT_RIGHT To the right of the split
LABEL_ALIGNMENT_TOP Above the split / above the arrow
LABEL_ALIGNMENT_BOTTOM Below the split



voidSetButtonPlacement (uifcLabelAlignment value)

 

Sets the justification of the label of the CascadeButton

LABEL_ALIGNMENT_LEFT To the left of the split / to the left of the arrow
LABEL_ALIGNMENT_RIGHT To the right of the split
LABEL_ALIGNMENT_TOP Above the split / above the arrow
LABEL_ALIGNMENT_BOTTOM Below the split

Parameters:
value
Returns:



xboolIsSplitButton ()

 
Returns:
Flag indicating whether to allow OnActivate() callbacks for the CascadeButton. When this flag is set to xtrue the CascadeButton is drawn as a split-button, with the arrow region being used to open the child MenuPane and the remainder of the button generating this callback.



voidSetSplitButton (xbool flag)

 

Sets flag indicating whether to allow OnActivate() callbacks for the CascadeButton. When this flag is set to xtrue the CascadeButton is drawn as a split-button, with the arrow region being used to open the child MenuPane and the remainder of the button generating this callback.
Parameters:
flag
Returns:



xstringGetCascadeHelpText ()

 
Returns:
The popup help-text to be displayed for the arrow part of a split CascadeButton.



voidSetCascadeHelpText (xrstring value)

 

Sets the popup help-text to be displayed for the arrow part of a split CascadeButton.
Parameters:
value
Returns:



xboolIsSplitCheckButton ()

 
Returns:
Flag indicating whether to treat OnActivate() callbacks for the CascadeButton as if the button were a CheckButton. When this flag is set to xtrue the CascadeButton toggles the value of CheckedState attribute when the button is pressed.



voidSetSplitCheckButton (xbool flag)

 

Sets flag indicating whether to treat OnActivate() callbacks for the CascadeButton as if the button were a CheckButton. When this flag is set to xtrue the CascadeButton toggles the value of CheckedState attribute when the button is pressed.
Parameters:
flag
Returns:



xboolDoesAutoClose ()

 
Returns:
Flag indicating whether the CascadeButton is in the process of closing.



voidSetAutoClose (xbool flag)

 

Sets flag indicating whether the CascadeButton is in the process of closing.
Parameters:
flag
Returns:



uifcCheckStateGetCheckedState ()

 
Returns:
The state of the CascadeButton when SplitCheckButton attribute is set to CHECK_STATE_SET.



voidSetCheckedState (uifcCheckState value)

 

Sets the state of the CascadeButton when SplitCheckButton attribute is set to CHECK_STATE_SET.
Parameters:
value
Returns:



voidAddActionListener (uifcCascadeButtonListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcCascadeButtonAction action)

 


Parameters:
action
Returns:



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