Menu Button Control

A Menu button control is used to display a single item from a menu.

 

Multiple menu items are normally used together to provide the user with a series of mutually exclusive choices. The recognition engine will automatically generate menu controls when it identifies a pattern of fields consistent with a menu display.

Client support

Newlook Smartclient

Newlook Server

Use

A Menu button control combines an Image and Label to represent a menu choice selection. Menu button controls are used to build and present selection sets that graphically mirror the standard OS/400 menu interface.

Host generated menu buttons

A group of menu buttons is automatically generated in the GUI whenever the Newlook recognition engine detects an entry field preceded by a series of output fields which have a format consistent with a menu item.

All automatically generated menu buttons have their BuddyValue, BuddyControl and set so that they are sending the correct value to the relevant host entry field when selected.

The menu item returns a menu item number string using the BuddyValue property. When selected, the menu button control's BuddyValue is automatically entered in the host screen using the screen location specified by the BuddyControl property, subsequently the BuddyKey key is issued to the application (usually the ENTER key).

Inserted menu buttons

Occasionally you may need to provide additional menu items to the user on the screen, in addition to those automatically generated. In this scenario you will need to insert a custom menu button and associate the control with an entry field using the steps outlined below.

Material skin considerations

When the material skin is enabled in your solution, menu buttons will be rendered with material styling. The most noticeable difference is the change in styling when a menu item is selected.

The following menu button properties are ignored when the material skin is enabled: BorderColor Property, BorderStyle Property and BorderWidth Property.

Material skin

Classic skin

See Also

CommandButton control | OptionButton control


© 2004-2021 looksoftware. All rights reserved.