Start of Content Area

Background documentation MenuBar  Locate the document in its SAP Library structure

A MenuBar is used to display actions in a structure. The MenuBar is a toolbar that can be organized in different blocks, the Menus. Under each block, you can organize individual menu items or other menus.

Example of the Visual Display

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_MENU_BAR

 

Properties in View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

design

WDUI_MENU_BAR_DESIGN

standard

Yes

enabled

WDY_BOOLEAN

true

Yes

tooltip

Text

 

Yes

visible

WDUI_VISIBILITY

visible

Yes

width

STRING

 

Yes

 

Aggregations in View Designer

Name

Cardinality

Type

MENUS

0..n

Menu

Note

Other properties that can be inherited are defined in the associated higher-level classes. The associated UI elements are:

        UIElements

        ViewElements

Dynamic Programming

For dynamic programming, the same properties, events and aggregations are available as in the View Designer. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

design

DESIGN

WDUI_MENU_BAR_DESIGN

 design: standard

CL_WD_MENU_BAR=>E_DESIGN-STANDARD

 design: transparent

CL_WD_MENU_BAR=>E_DESIGN-TRANSPARENT

enabled

ENABLED

WDY_BOOLEAN

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_MENU_BAR=>E_VISIBLE-NONE

 visible: visible

CL_WD_MENU_BAR=>E_VISIBLE-VISIBLE

width

WIDTH

STRING

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

MENUS

MENUS

0..n

 

Example

There is a system example for this UI element in the DEMO_UIEL_MENU component in the DEMO_UIEL_MENUBAR application.

 

End of Content Area