SalWindowsMenu
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Web.50 (5.0.0.0)
A SAL MDI window-list menu with a generated initialization hook.
- C#
- VB.NET
public class SalWindowsMenu : MenuItem, ISalMenu
Public Class SalWindowsMenu
Inherits MenuItem
Implements ISalMenu
Example:
var windows = new SalWindowsMenu { Text = "Window" };
mainMenu.MenuItems.Add(windows);
Constructors
SalWindowsMenu()
Enables MDI window-list behavior and invokes OnInitializeMenu.
Properties
Owner
Control: Gets the control identified as this menu's SAL owner.
StatusText
String: Gets or sets the retained status-text value.
This property stores the value without installing a selection handler.
Methods
CloneMenu()
Attempts to clone the inherited menu and copy enabled-state callbacks.
Returns: MenuItem. The cloned item if the inherited result can be cast to SalPopupMenu.
This implementation casts the clone to SalPopupMenu even though this class derives directly from MenuItem; an incompatible clone throws InvalidCastException.
Dispose(disposing)
Clears SAL callback references before disposing the inherited menu item.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | Whether managed resources are being disposed. |
MergeMenu()
Creates and registers a merged menu without running its constructor or initialization hook.
Returns: MenuItem. The merged menu with the EnabledWhen subscriptions copied.
OnInitializeMenu()
Provides the initialization hook overridden by generated named-menu classes.
The base implementation does nothing. Called from construction.
OnPopup(e)
Refreshes child menu states within the menu's SAL and SQL contexts, then raises the inherited event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The popup event data. |
Events
EnabledWhen
SalMenuEnabledWhenHandler Evaluates whether the menu should be enabled when its SAL state is refreshed.
Implements
| Name | Description |
|---|---|
| ISalMenu | Exposes menu refresh, status text, and the owning control for SAL menus. |