SalMenuItem
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Runtime.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.
- C#
- VB.NET
public class SalMenuItem : MenuItem, ISalMenu
Public Class SalMenuItem
Inherits MenuItem
Implements ISalMenu
Constructors
SalMenuItem()
Constructs a new SalMenuItem.
Properties
Font
Deprecated:
Font: Returns/Sets the font for the menu item. (Default: null)
Image
Image: Returns/Sets the image to paint next to menu items. (Default: null)
ImageName
String: Image name. Name of the image to load from the embedded resources. (Default: "")
ImageNormal
Deprecated:
Image: Returns/Sets the image to paint next to menu items. (Default: null)
ImageSelected
Deprecated:
Image: Returns/Sets the image to paint next to selected menu items. (Default: null)
MenuID
Int32: Returns the internal menu ID assigned to the menu item.
Owner
Control: Owner of menu item.
StatusText
String: The status text to display in the status bar when the menu item is selected. (Default: "")
Methods
CloneMenu()
Overrides the CloneMenu method to duplicate event handlers.
Returns: MenuItem.
MergeMenu()
Overrides the MergeMenu method to duplicate event handlers.
Returns: MenuItem.
Events
CheckedWhen
SalMenuCheckedWhenHandler CheckedWhen event.
EnabledWhen
SalMenuEnabledWhenHandler EnabledWhen event.
MenuActions
SalMenuActionsHandler MenuActions event.
Implements
| Name | Description |
|---|---|
| ISalMenu | All Sal menu types implement this interface. It is used to let the framework query for common properties like the StatusText. |