MenuFocusable Property

You can open a menu using a clickable object. The MenuFocusable property, which applies only to Menu controls, determines whether the focus stays on a clicked item or the menu.

Syntax

PowerBuilder dot notation:
menuname.MenuFocusable
Modify and Describe argument:
menuname.MenuFocusable = {value}
Parameter Description
value Specifies the default behavior of the menu's focus.
  • true - Focus shifts from the button to the menu so that the user can use the keyboard arrow keys to navigate the menu. The button loses focus, triggering the LoseFocus event.
  • false - Focus remains on the button when the item is clicked.

Usage

In the Menu painter, Properties view, Appearance group, select the menu control and set the value.

You can also set the property in a script.

Example 1

m_genapp_sheet.MenuFocusable = true