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.
- C#
- VB.NET
public class SalFormMainMenu : MainMenu, ISalAccessory
Public Class SalFormMainMenu
Inherits MainMenu
Implements 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
SalFormMainMenu()
Initializes a new instance of SalFormMainMenu.
Methods
CreateMenuHandle()
Creates the native menu after marking MDI-container entries for replacement during child-menu merging.
Returns: IntPtr. The native menu handle.
ProcessCmdKey(msg, keyData)
Finds the menu item with the requested shortcut and invokes its native shortcut-click processing.
| Parameter | Type | Description |
|---|---|---|
| msg | Message | The keyboard message. |
| keyData | Keys | The shortcut key and modifier flags. |
Returns: Boolean. False when no matching item exists; otherwise, the shortcut handler result.
Implements
| Name | Description |
|---|---|
| ISalAccessory | Provides the runtime creation setting and role of a SAL form accessory. |