Skip to main content
Version: 2023

SalMenuItem

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.49 (4.9.0.0)

Implementation of SalMenuItem. Extends the default MenuItem in .NET to support SAL menu events and to support fonts and images.

public class SalMenuItem : MenuItem, ISalMenu

Constructors​

Instance memberSalMenuItem()​

Constructs a new SalMenuItem.

Properties​

Instance memberImageName​

String: Returns or sets the image to load from the embedded resources. (Default: "")

Instance memberImageNormal​

Deprecated memberDeprecated: Image: Returns/Sets the image to paint next to menu items. (Default: null)

Instance memberImageSelected​

Deprecated memberDeprecated: Image: Returns/Sets the image to paint next to selected menu items. (Default: null)

Int32: Returns the internal menu ID assigned to the menu item.

Instance memberOwner​

Control: Owner of menu item.

Instance memberStatusText​

String: The status text to display in the status bar when the menu item is selected. (Default: "")

Methods​

Instance memberCloneMenu()​

Overrides the CloneMenu method to duplicate event handlers.

Returns: MenuItem.

Instance memberMergeMenu()​

Overrides the MergeMenu method to duplicate event handlers.

Returns: MenuItem.

Events​

Instance memberCheckedWhen​

SalMenuCheckedWhenHandler CheckedWhen event.

Instance memberEnabledWhen​

SalMenuEnabledWhenHandler EnabledWhen event.

SalMenuActionsHandler MenuActions event.

Implements​

NameDescription
ISalMenuAll Sal menu types implement this interface. It is used to let the framework query for common properties like the StatusText.