XSalFlatButton
Namespace: PPJ.Runtime.XSal
Assembly: PPJ.Runtime.XSal.50 (5.0.0.0)
Provides a nonselectable SAL pushbutton with XSal toolbar border and image-placement styles.
- C#
- VB.NET
public class XSalFlatButton : SalPushbutton
Public Class XSalFlatButton
Inherits SalPushbutton
Example:
var button = new PPJ.Runtime.XSal.XSalFlatButton();
button.Text = "Open";
button.Style = PPJ.Runtime.XSal.XSal.ToolbuttonStyles.Flat;
Constructors
XSalFlatButton()
Initializes a toolbar button that does not take keyboard focus.
Properties
Style
ToolbuttonStyles: Gets or sets the flat-border and image-placement flags.
ThinBorder has no additional effect. LeftImage takes precedence over RightImage when both flags are set.
Methods
FromHandle(handle)
Resolves a native handle to a flat button.
| Parameter | Type | Description |
|---|---|---|
| handle | SalWindowHandle | The button handle. |
Returns: XSalFlatButton. The button, or null if no managed control is associated.
Throws:
- InvalidCastException The associated control is not an XSalFlatButton.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalPictureControl | |
| ISalWindow |