Class GPALTab
A GPAL tab instantiated with GPAL.Tab for use on GPAL forms.
Callback EventHandler is invoked on the GPALTab.WindowsControl.Clicked event.
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 GPALTab : GPALControl, IAllowControlSettingsAndFontSettings, IAllowFontSettings, IAllowControlSettings
Examples
static GPALTab gPalTab1 = (GPALTab)GPAL.Tab
.WithName("Tab1")
.WithText("Tab 1")
.WithShortcutKey(System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.D1); // Alt-1
GPALForm myForm = (GPALForm)GPAL.Form
.WithTitle("Simple Form Test")
.WithTab(gPalTab1) // items after this are placed on this tab
.WithFormControl(gPalRadioButton1)
.WithFormControl(gPalRadioButton2)
.ShowDialog();
Properties
Enabled
Runtime access to Enable/Disable the tab.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | True [default] - enabled |
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 |