Class GPALInput
A GPAL single line input instantiated with GPAL.Input for use on GPAL forms.
Callback EventHandler is invoked on the GPALInput.WindowsControl.TextChanged event.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GenerallyPositive.GPALForm
Assembly: GPAL.dll
Syntax
public class GPALInput : GPALControl, IAllowControlSettingsAndFontSettings, IAllowFontSettings, IAllowControlSettingsPlaceholderEnabledAndPassword, IAllowControlSettings, IAllowEnabled, IAllowPassword, IAllowPlaceholder
Examples
static GPALInput gPalInput = (GPALInput)GPAL.Input
.WithText(@"c:\drivers")
.WithCallback(InputHandler); // on text changed event handler
GPALForm myForm = (GPALForm)GPAL.Form
.WithTitle("Simple Form Test")
.WithFormControl(gPalInput)
.ShowDialog();
Properties
Enabled
Runtime access to Enable/Disable the input.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | True [default] - enabled |
IsPassword
The input a password or other sensitive information.
The in;ut will be masked with a bullet character.
Declaration
public IAllowControlSettings IsPassword { get; }
Property Value
| Type | Description |
|---|---|
| IAllowControlSettings | Fluent interface to define more settings |
Methods
WithEnabled(Boolean)
Fluent interface to set the initial state of the control
Declaration
public IAllowControlSettings WithEnabled(bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enabled | True [default] |
Returns
| Type | Description |
|---|---|
| IAllowControlSettings | Fluent interface to define more settings |
WithPlaceholder(String)
Declaration
public IAllowControlSettings WithPlaceholder(string PlaceholderText)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | PlaceholderText |
Returns
| Type | Description |
|---|---|
| IAllowControlSettings |