Skip to main content

SalFormMainMenu

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.50 (5.0.0.0)

Provides a form main menu with SAL shortcut dispatch and MDI menu replacement.

public class SalFormMainMenu : MainMenu, ISalAccessory

Example:

using (var form = new PPJ.Runtime.Windows.SalFormWindow())
{
var menu = new PPJ.Runtime.Windows.SalFormMainMenu();
menu.MenuItems.Add(new PPJ.Runtime.Windows.SalPopupMenu { Text = "&File" });
form.Menu = menu;
}

Constructors

Instance member SalFormMainMenu()

Initializes a new instance of SalFormMainMenu.

Methods

Protected member CreateMenuHandle()

Creates the native menu after marking MDI-container entries for replacement during child-menu merging.

Returns: IntPtr. The native menu handle.

Protected member ProcessCmdKey(msg, keyData)

Finds the menu item with the requested shortcut and invokes its native shortcut-click processing.

ParameterTypeDescription
msg by referenceMessageThe keyboard message.
keyDataKeysThe shortcut key and modifier flags.

Returns: Boolean. False when no matching item exists; otherwise, the shortcut handler result.

Implements

NameDescription
ISalAccessoryProvides the runtime creation setting and role of a SAL form accessory.