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.
Newlook Smartclient
Newlook Server
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.
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).
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.
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 |
|
|
![]() |
The menu button control is rendered as a gray arrow by default however it is possible to assign a different graphic to display in this control. To do this you need to modify the Picture property to point to the image that you want displayed. It is important to note that Newlook uses relative file paths therefore any custom images that you assign to menu controls must be deployed with your Newlook solution files to end users in the same relative location. It is recommended that you create an Images folder within your solution directory which contains all custom images used in your solution. This solution folder can then be deployed to end users and all relative paths remain intact. If you want to change the image that displays in menu button controls globally throughout your application, this can be done via Settings > Display > Menus in Newlook Developer or Newlook Server. |
Binding this control to a buddy involves linking it with another control on the form which will be used to display the value and/or send the value through to the host.
Newlook Smartclient |
Newlook Server |
Deprecated
|
Obsolete
CommandButton control | OptionButton control
© 2004-2021 looksoftware. All rights reserved.