Skip to main content

SalFormToolBar

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.50 (5.0.0.0)

Provides a docked panel for SAL form toolbar controls.

public class SalFormToolBar : Panel, ISalAccessory, ISalWindow

Example:

using (var form = new PPJ.Runtime.Windows.SalFormWindow())
{
var accessory = new PPJ.Runtime.Windows.SalFormToolBar();
form.Controls.Add(accessory);
}

Constructors​

Instance member SalFormToolBar()​

Creates a SAL toolbar panel docked at the top, 60 pixels high, with tab-stop navigation disabled.

Properties​

Instance member Appearance​

ToolBarAppearance: Gets or sets whether toolbar buttons use the normal or flat appearance. (Default: Normal)

Instance member Create​

Boolean: Gets or sets whether the SAL form creates this accessory. (Default: True)

Protected member CreateParams​

CreateParams: Gets native creation parameters with explicit mirroring for a right-to-left form.

Instance member UseVisualStyleBackColor​

Boolean: Gets or sets whether the toolbar paints a themed gradient background when visual styles are available. (Default: False)

Methods​

Protected member OnHandleCreated(e)​

Initializes flat toolbar buttons at runtime before raising the handle-created event.

ParameterTypeDescription
eEventArgsThe event data.

Protected member OnPaintBackground(args)​

Paints the themed toolbar gradient when enabled, or invokes the base background painter.

ParameterTypeDescription
argsPaintEventArgsThe graphics surface and repaint region.

Protected member SetVisibleCore(value)​

Applies visibility while keeping an accessory with Create disabled hidden in the designer.

ParameterTypeDescription
valueBooleanTrue to show the accessory; false to hide it.

Protected member WndProc(m)​

Processes native messages while ignoring WM_CLOSE to avoid closing the owning form.

ParameterTypeDescription
m by referenceMessageThe window message and its result.

Implements​

NameDescription
ISalAccessoryProvides the runtime creation setting and role of a SAL form accessory.
ISalWindowExposes SAL message dispatch and runtime metadata for child controls, forms, dialogs, and MDI windows.