SalFormToolBar
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Runtime.50 (5.0.0.0)
Provides a docked panel for SAL form toolbar controls.
- C#
- VB.NET
public class SalFormToolBar : Panel, ISalAccessory, ISalWindow
Public Class SalFormToolBar
Inherits Panel
Implements ISalAccessory, ISalWindow
Example:
using (var form = new PPJ.Runtime.Windows.SalFormWindow())
{
var accessory = new PPJ.Runtime.Windows.SalFormToolBar();
form.Controls.Add(accessory);
}
Constructors
SalFormToolBar()
Creates a SAL toolbar panel docked at the top, 60 pixels high, with tab-stop navigation disabled.
Properties
Appearance
ToolBarAppearance: Gets or sets whether toolbar buttons use the normal or flat appearance. (Default: Normal)
Create
Boolean: Gets or sets whether the SAL form creates this accessory. (Default: True)
CreateParams
CreateParams: Gets native creation parameters with explicit mirroring for a right-to-left form.
UseVisualStyleBackColor
Boolean: Gets or sets whether the toolbar paints a themed gradient background when visual styles are available. (Default: False)
Methods
OnHandleCreated(e)
Initializes flat toolbar buttons at runtime before raising the handle-created event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnPaintBackground(args)
Paints the themed toolbar gradient when enabled, or invokes the base background painter.
| Parameter | Type | Description |
|---|---|---|
| args | PaintEventArgs | The graphics surface and repaint region. |
SetVisibleCore(value)
Applies visibility while keeping an accessory with Create disabled hidden in the designer.
| Parameter | Type | Description |
|---|---|---|
| value | Boolean | True to show the accessory; false to hide it. |
WndProc(m)
Processes native messages while ignoring WM_CLOSE to avoid closing the owning form.
| Parameter | Type | Description |
|---|---|---|
| m | Message | The window message and its result. |
Implements
| Name | Description |
|---|---|
| ISalAccessory | Provides the runtime creation setting and role of a SAL form accessory. |
| ISalWindow | Exposes SAL message dispatch and runtime metadata for child controls, forms, dialogs, and MDI windows. |