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
Property |
Client |
Description |
|
Gets or sets the grid column that this control is aligned to. Design-time only. Not available at run-time. |
|
|
Gets or sets the background color of the object. |
|
|
Gets or sets a style which determines if the control's background is transparent or opaque. |
|
|
Gets or sets whether the caption of the control blinks. |
|
|
Gets or sets the control's border color. |
|
|
Gets or sets the style of a control's border. |
|
|
Gets or sets the width (thickness) of the control's border. |
|
|
Gets or sets the control used as the buddy control. |
|
|
Gets or sets the AID key to be sent from the buddy control. |
|
|
Gets or sets the property of the buddy control that is to be modified. |
|
|
Gets or sets the value that is to be passed to the buddy control. |
|
|
Gets or sets the caption text of the control. |
|
|
Gets or sets the Coded Character Set Identifier (CCSID), which defines the control's code page and character set. |
|
|
The green screen column coordinate that marks the beginning of the object. Read only. Host generated controls only. |
|
|
Gets or sets the CSS class, or classes, for the control in Newlook Server. Server-only. |
|
|
Gets or sets the image file to be displayed in a form or control when it is in the disabled state. |
|
|
Gets or sets the image file to display in the form or control when it has ben clicked. |
|
|
Gets or sets the enabled state of the object. |
|
|
Gets or sets whether text should be shown in a bold font. |
|
|
Gets or sets whether text should be shown with an italic style. |
|
|
Gets or sets the name of the font family used to display text. |
|
|
Gets or sets the font point size used to display text. |
|
|
Gets or sets whether text should be diplayed underlined. |
|
|
Gets or sets the foreground (text) color of the control. |
|
|
Sets or returns the current control index for an object. |
|
|
Returns or sets the height of the object's size in pixels at default size, which is the object's size at design-time. |
|
|
Gets or sets the color displayed when the user hovers over the control with a mouse. |
|
|
Gets or sets the image file to display in the form or control when it the user hovers over it with a mouse. |
|
|
Specifies the anchor tag for the control. |
|
|
Determines the distance, in pixels, between the left edge of the control and the left edge of its form or parent container at default size, which is the object's size at design-time. |
|
|
Returns or sets the color in a bitmap
image that should be interpreted as the transparent color. Deprecated property. |
|
|
Gets or sets the name of this object. |
|
|
Gets or sets the name of the macro or script to be run when the Click event is triggered. |
|
|
Gets or sets the name of the macro or script to be run when the GotFocus event is triggered. Smartclient-only property. |
|
|
Gets or sets the name of the macro or script to be run when the LostFocus event is triggered. Smartclient-only property. |
|
|
Gets or sets the name of the macro or script to be run when the MouseEnter event occurs. Smartclient-only. |
|
|
Gets or sets the name of the macro or script to be run when the MouseExit event occurs. Smartclient-only. |
|
|
Gets or sets the file name of the image to display in the control or form. |
|
|
The green screen row coordinate that marks the beginning of the object. Read only. Host generated controls only. |
|
|
Gets or sets a value which determines the control's tab order. |
|
|
Gets or sets whether the Tab key can be used to set focus to the control. |
|
|
Gets or sets user defined information for the control. |
|
|
Gets or sets whether the control will recieve focus when the user clicks on it. |
|
|
Gets or sets the text style of the control. Server-only for this control. |
|
|
Gets or sets the control's tool-tip text. |
|
|
Determines the distance, in pixels, between the top edge of the control and the top edge of its form or parent container at default size, which is the object's size at design-time. |
|
|
Returns a value which specifies the control's type. Read only. |
|
|
Gets or sets a value which determines whether the HoverColor property will be used. Smartclient-only. |
|
|
Determines whether the color assigned in the MaskColor
property is used. Deprecated property. |
|
|
Gets or sets whether the control's keystroke mnemonic is embedded within the text. |
|
|
Gets or sets whether the control, object or form is visible or hidden. |
|
|
Gets or sets the width of the object in pixels at default size, which is the object's size at design-time. |
CommandButton control | OptionButton control
© 2004-2021 looksoftware. All rights reserved.