====== API: Basic Controls ======
API Reference for basic UI controls.
===== TWvdSLabel =====
Text display without interaction.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== Syntax ====
TWvdSLabel = class(TWvdSControl)
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Text | string | '' | Displayed text |
^ FontWeight | TWvdSFontWeight | fwNormal | Normal, Bold |
^ FontStyle | TWvdSFontStyle | fsNormal | Normal, Italic |
^ Foreground | TWvdSColor | clDefault | Text color |
^ TextWrapping | TWvdSTextWrapping | twNoWrap | NoWrap, Wrap, WrapWithOverflow |
^ TextAlignment | TWvdSTextAlignment | taLeft | Left, Center, Right |
==== Events ====
None (non-interactive).
----
===== TWvdSButton =====
Standard button for user actions.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== Syntax ====
TWvdSButton = class(TWvdSControl)
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Caption | string | '' | Button text |
^ IsDefault | Boolean | False | Enter key triggers Click |
^ IsCancel | Boolean | False | Escape key triggers Click |
^ IsEnabled | Boolean | True | Enabled/Disabled |
^ Command | IWvdSCommand | nil | Bound command |
^ CommandParameter | TValue | nil | Parameter for command |
^ ImageSource | TWvdSImageSource | nil | Optional icon |
==== Events ====
| Event | Signature | Description |
^ OnClick | TNotifyEvent | Button was clicked |
==== Example ====
procedure TMainWindow.OnSaveClick(Sender: TObject);
begin
if ValidateForm then
SaveData;
end;
----
===== TWvdSTextBox =====
Simple single-line text field.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== Syntax ====
TWvdSTextBox = class(TWvdSControl)
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Text | string | '' | Current text |
^ PlaceholderText | string | '' | Placeholder text |
^ MaxLength | Integer | 0 | Max characters (0=unlimited) |
^ IsReadOnly | Boolean | False | Read-only mode |
^ IsPassword | Boolean | False | Password mode (*****) |
^ SelectionStart | Integer | 0 | Cursor position |
^ SelectionLength | Integer | 0 | Selected characters |
==== Events ====
| Event | Signature | Description |
^ OnTextChanged | TNotifyEvent | Text was changed |
^ OnKeyDown | TKeyEventHandler | Key pressed |
----
===== TWvdSCheckBox =====
Checkbox for Boolean values.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Content | string | '' | Label |
^ IsChecked | Boolean? | False | Checked, Unchecked, Indeterminate |
^ IsThreeState | Boolean | False | Third state allowed |
==== Events ====
| Event | Signature | Description |
^ OnCheckedChanged | TNotifyEvent | State changed |
----
===== TWvdSRadioButton =====
Radio button for mutually exclusive selection.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Content | string | '' | Label |
^ IsChecked | Boolean | False | Selected |
^ GroupName | string | '' | Group name |
==== Events ====
| Event | Signature | Description |
^ OnCheckedChanged | TNotifyEvent | Selection changed |
----
===== TWvdSImage =====
Image display.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Source | TWvdSImageSource | nil | Image source |
^ Stretch | TWvdSStretch | sNone | None, Fill, Uniform, UniformToFill |
==== TUI Note ====
In TUI target, Kitty Graphics or Sixel is used. Fallback: placeholder with border.
----
===== TWvdSProgressBar =====
Progress indicator.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Value | Double | 0 | Current value |
^ Minimum | Double | 0 | Minimum value |
^ Maximum | Double | 100 | Maximum value |
^ IsIndeterminate | Boolean | False | Indeterminate mode |
^ Orientation | TWvdSOrientation | oHorizontal | Horizontal, Vertical |
----
===== TWvdSSlider =====
Slider for value selection.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Value | Double | 0 | Current value |
^ Minimum | Double | 0 | Minimum value |
^ Maximum | Double | 100 | Maximum value |
^ SmallChange | Double | 1 | Small step |
^ LargeChange | Double | 10 | Large step |
^ TickFrequency | Double | 0 | Tick spacing |
^ IsSnapToTickEnabled | Boolean | False | Snap to ticks |
^ Orientation | TWvdSOrientation | oHorizontal | Horizontal, Vertical |
==== Events ====
| Event | Signature | Description |
^ OnValueChanged | TNotifyEvent | Value changed |
----
===== TWvdSToggleButton =====
On/Off switch.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ IsChecked | Boolean | False | On/Off state |
^ ContentOn | string | 'ON' | Text when On |
^ ContentOff | string | 'OFF' | Text when Off |
==== Events ====
| Event | Signature | Description |
^ OnToggled | TNotifyEvent | State toggled |
----
===== TWvdSHyperlink =====
Clickable link.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Text | string | '' | Link text |
^ NavigateUri | string | '' | Target URL |
^ Command | IWvdSCommand | nil | Alternative command |
==== Events ====
| Event | Signature | Description |
^ OnClick | TNotifyEvent | Link clicked |
----
===== TWvdSBorder =====
Border and container.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ BorderThickness | TWvdSThickness | 0 | Border thickness |
^ BorderBrush | TWvdSBrush | nil | Border color |
^ Background | TWvdSBrush | nil | Background |
^ CornerRadius | TWvdSCornerRadius | 0 | Corner radius |
^ Padding | TWvdSThickness | 0 | Inner padding |
^ Child | TWvdSFrameworkElement | nil | Content |
----
===== TWvdSSeparator =====
Visual separator line.
==== Namespace ====
''WvdS.UI.Controls.Basic''
==== PXAML ====
==== Properties ====
| Property | Type | Default | Description |
^ Orientation | TWvdSOrientation | oHorizontal | Horizontal, Vertical |
^ Stroke | TWvdSBrush | nil | Line color |
^ StrokeThickness | Double | 1 | Line thickness |
----
===== See Also =====
* [[.:control-bibliothek|Control Library]]
* [[.:api-controls-editors|Editor Controls API]]
* [[.:control-architektur|Control Architecture]]