Skip to main content

XSalToolbar

Namespace: PPJ.Runtime.XSal

Assembly: PPJ.Runtime.XSal.50 (5.0.0.0)

Hosts docked XSal toolboxes along one edge of a form.

public class XSalToolbar : Panel, ISalAccessory

Example:

var toolbar = new PPJ.Runtime.XSal.XSalToolbar(
"Tools", PPJ.Runtime.XSal.XSalToolbar.Side.Top);
toolbar.Height = 30;

Constructors

Instance member XSalToolbar(name, side)

Initializes a visible, borderless toolbar docked to the specified edge with an initially empty size.

NameTypeDescription
nameStringThe control name.
sideSideThe edge used for docking.

Properties

Static member Appearance

ToolBarAppearance: Gets or sets the shared toolbar appearance setting used by XSal toolbox behavior.

Instance member ToolbarSide

Side: Gets the docking edge selected at construction.

Static member UseVisualStyleBackColor

Boolean: Gets or sets whether toolbar backgrounds use the themed tool-strip gradient when visual styles are available.

Methods

Static member GetToolbars(form)

Finds the four conventionally named XSal docking toolbars on a form.

ParameterTypeDescription
formFormThe form to search.

Returns: XSalToolbar[]. An array indexed by Side, or null when the top toolbar is absent. Other entries can be null.

Static member GetToolboxes(form)

Collects docked and owned floating toolboxes in reverse discovery order.

ParameterTypeDescription
formFormThe form whose four XSal docking toolbars and owned forms are inspected.

Returns: XSalToolbox[]. The toolbox array, or null if the top docking toolbar is absent.

When the top toolbar exists, the other three docking toolbars must also exist.

Protected member OnLayout(levent)

Arranges the docked toolboxes before running base layout.

ParameterTypeDescription
leventLayoutEventArgsThe layout event data.

Protected member OnMouseDown(e)

Shows the toolbox visibility menu for a single right-button press.

ParameterTypeDescription
eMouseEventArgsThe mouse position, button, and click count.

Protected member OnPaintBackground(e)

Paints the shared themed gradient when enabled, or delegates background painting to the base panel.

ParameterTypeDescription
ePaintEventArgsThe painting surface and clip bounds.

Implements

NameDescription
ISalAccessory