Library | File

Class uifcMenuBar

# include <uifcMenuBar.h>

class uifcMenuBar
 : public virtual uifcComponent
{
    xaideclare(uifcMenuBar)
    ...
};



Description





Method Summary

voidAddActionListener (uifcMenuBarListener_ptr listener)
 
xboolCanRedraw ()
 
voidCreateTimer (uifcMenuBarTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidDeletePopupMenu ()
 
xboolDoesReplayDismissEvent ()
 
xstringGetDragCursorImage ()
 
xstringGetDragItemName ()
 
xstringGetDragNotValidCursorImage ()
 
xstringGetDropItemName ()
 
xstringsequence_ptrGetEnabledItemNameArray ()
 
uifcFontClassGetFontClass ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xstringGetHelpText ()
 
xstringsequence_ptrGetItemHelpTextArray ()
 
xstringsequence_ptrGetItemImageArray ()
 
xstringsequence_ptrGetItemNameArray ()
 
uifcColors_ptrGetItemTextColorArray ()
 
xstringGetMostRecentItemName ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
xstringsequence_ptrGetSelectedItemNameArray ()
 
xstringsequence_ptrGetVisibleItemNameArray ()
 
voidInsertItem (uifcMenuBarItem_ptr menubaritem, uifcComponentPositionData_ptr comp_pos_data)
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
xboolIsEnabled ()
 
xboolIsValidDragSite ()
 
voidPushAction (uifcMenuBarAction action)
 
voidSetCanRedraw (xbool flag)
 
voidSetDragCursorImage (xrstring value)
 
voidSetDragNotValidCursorImage (xrstring value)
 
voidSetEnabled (xbool flag)
 
voidSetEnabledItemNameArray (xstringsequence_ptr values)
 
voidSetFontClass (uifcFontClass value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetHelpText (xrstring value)
 
voidSetItemHelpTextArray (xstringsequence_ptr values)
 
voidSetItemImageArray (xstringsequence_ptr values)
 
voidSetItemNameArray (xstringsequence_ptr values)
 
voidSetItemTextColorArray (uifcColors_ptr colors)
 
voidSetReplayDismissEvent (xbool flag)
 
voidSetSelectedItemNameArray (xstringsequence_ptr values)
 
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



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_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:



voidInsertItem (uifcMenuBarItem_ptr menubaritem, uifcComponentPositionData_ptr comp_pos_data)

 


Parameters:
menubaritem
comp_pos_data
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:



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.



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:



xboolDoesReplayDismissEvent ()

 
Returns:
Flag indicating whether the MenuBar should replay a mouse event which occured outside the open MenuPane hierarchy of the MenuBar, causing the MenuPane to be dismissed and the MenuBar 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 MenuBar should replay a mouse event which occured outside the open MenuPane hierarchy of the MenuBar, causing the MenuPane to be dismissed and the MenuBar to close. The mouse event is replayed to the component beneath the cursor, where it would otherwise have been sent, originally.
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:



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:



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:



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:



uifcFontClassGetFontClass ()

 
Returns:
The base font class to be used to draw text in the component.

FONT_CLASS_DEFAULT The default font
FONT_CLASS_DESKTOP The font used by the Window Manager for the text of desktop icons
FONT_CLASS_MENU The font used by MenuBars and components within MenuPanes
FONT_CLASS_POPUPHELP The font used by the popup helptext
FONT_CLASS_MESSAGE The font used for messages in the UI Message Dialog
FONT_CLASS_TITLEBAR The font used to draw the titlebar text of a Dialog
FONT_CLASS_FIXED A system-specific fixed width font for the locale



voidSetFontClass (uifcFontClass value)

 

Sets the base font class to be used to draw text in the component.

FONT_CLASS_DEFAULT The default font
FONT_CLASS_DESKTOP The font used by the Window Manager for the text of desktop icons
FONT_CLASS_MENU The font used by MenuBars and components within MenuPanes
FONT_CLASS_POPUPHELP The font used by the popup helptext
FONT_CLASS_MESSAGE The font used for messages in the UI Message Dialog
FONT_CLASS_TITLEBAR The font used to draw the titlebar text of a Dialog
FONT_CLASS_FIXED A system-specific fixed width font for the locale

Parameters:
value
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:



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:



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



voidSetCanRedraw (xbool flag)

 

Sets flag indicating whether redraws are permitted in the MenuBar.
Parameters:
flag
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:



xstringGetHelpText ()

 
Returns:
The popup help-text to be displayed whilst the pointer is over the component.
If the value begins with <HTML> then the help-text is treated as HTML, and rendered accordingly. It is often wise to use HTML help-text in conjunction with HelpTextWidth attribute, to define the maximum width of the popup help-text window.



voidSetHelpText (xrstring value)

 

Sets the popup help-text to be displayed whilst the pointer is over the component.
If the value begins with <HTML> then the help-text is treated as HTML, and rendered accordingly. It is often wise to use HTML help-text in conjunction with HelpTextWidth attribute, to define the maximum width of the popup help-text window.
Parameters:
value
Returns:



xstringGetMostRecentItemName ()

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



voidAddActionListener (uifcMenuBarListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcMenuBarAction action)

 


Parameters:
action
Returns:



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