Skip to main content
Version: 2025

XSalToolbar

Namespace: PPJ.Runtime.XSal

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

Provides a docking strip that groups XSal toolboxes along one edge of a form.

public class XSalToolbar : Panel

Example:

XSalToolbar bar = new XSalToolbar("Tools", XSalToolbar.Side.Top);
SalForm form = new SalForm();
form.Controls.Add(bar);

Constructors

Instance member XSalToolbar(name, side)

Creates a hidden borderless toolbar docked to the specified form edge.

NameTypeDescription
nameStringThe toolbar’s control name.
sideSideThe edge to which the toolbar is docked.

Properties

Instance member ToolbarSide

Side: Gets the docking side specified when the toolbar was created.

Static member UseVisualStyleBackColor

Boolean: Gets or sets the shared preference for visual-style toolbar background colors.

Methods

Static member GetToolbars(form)

Finds the four standard XSal toolbar strips on a form.

ParameterTypeDescription
formFormThe form containing the initialized XSal toolbar system.

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

Static member GetToolboxes(form)

Collects docked and owned floating XSal toolboxes associated with a form.

ParameterTypeDescription
formFormThe form with a complete initialized XSal toolbar system.

Returns: XSalToolbox[]. The collected toolboxes in reverse discovery order, or null when the toolbar system is absent.

Protected member OnControlAdded(e)

Tracks the added child’s visibility and updates whether the docking strip is shown.

ParameterTypeDescription
eControlEventArgsThe event data identifying the added control.

Protected member OnControlRemoved(e)

Stops tracking the removed child’s visibility and updates whether the docking strip is shown.

ParameterTypeDescription
eControlEventArgsThe event data identifying the removed control.