====== API: Editor Controls ======
Riferimento API per campi di input e modifica.
===== TWvdSTextEdit =====
Campo testo avanzato a riga singola con pulsanti.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Text | string | '' | Testo attuale |
^ NullText | string | '' | Testo segnaposto |
^ ShowClearButton | Boolean | False | Mostra pulsante cancella |
^ Buttons | TWvdSButtonCollection | nil | Pulsanti aggiuntivi |
^ EditMask | string | '' | Maschera input |
==== Events ====
| Event | Firma | Descrizione |
^ OnTextChanged | TNotifyEvent | Testo modificato |
^ OnButtonClick | TButtonClickEvent | Pulsante cliccato |
----
===== TWvdSMemoEdit =====
Campo testo multiriga.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Text | string | '' | Testo intero |
^ Lines | TStrings | nil | Accesso per righe |
^ MaxLines | Integer | 0 | Max. righe (0=illimitato) |
^ WordWrap | Boolean | True | A capo automatico |
^ ScrollBars | TWvdSScrollBars | ssBoth | None, Horizontal, Vertical, Both |
==== Events ====
| Event | Firma | Descrizione |
^ OnTextChanged | TNotifyEvent | Testo modificato |
----
===== TWvdSSpinEdit =====
Input numerico con pulsanti spinner.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Value | Double | 0 | Valore attuale |
^ MinValue | Double | MinDouble | Valore minimo |
^ MaxValue | Double | MaxDouble | Valore massimo |
^ Increment | Double | 1 | Passo |
^ DecimalPlaces | Integer | 0 | Cifre decimali |
^ UseThousandSeparator | Boolean | False | Separatore migliaia |
==== Events ====
| Event | Firma | Descrizione |
^ OnValueChanged | TNotifyEvent | Valore modificato |
----
===== TWvdSDateEdit =====
Selezione data con popup calendario.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Date | TDateTime | 0 | Data selezionata |
^ MinDate | TDateTime | 0 | Data piu antica |
^ MaxDate | TDateTime | 0 | Data piu recente |
^ DateFormat | string | 'dd.MM.yyyy' | Formato visualizzazione |
^ ShowWeekNumbers | Boolean | False | Mostra settimane calendario |
==== Events ====
| Event | Firma | Descrizione |
^ OnDateChanged | TNotifyEvent | Data modificata |
----
===== TWvdSTimeEdit =====
Selezione ora.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Time | TDateTime | 0 | Ora selezionata |
^ TimeFormat | string | 'HH:mm:ss' | Formato visualizzazione |
^ Use24HourFormat | Boolean | True | Formato 24 ore |
^ ShowSeconds | Boolean | True | Mostra secondi |
==== Events ====
| Event | Firma | Descrizione |
^ OnTimeChanged | TNotifyEvent | Ora modificata |
----
===== TWvdSDateTimeEdit =====
Selezione combinata data e ora.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ DateTime | TDateTime | 0 | Data e ora |
^ DateTimeFormat | string | 'dd.MM.yyyy HH:mm:ss' | Formato |
----
===== TWvdSCalcEdit =====
Campo input calcolatrice.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Value | Double | 0 | Valore calcolato |
^ DecimalPlaces | Integer | 2 | Cifre decimali |
^ Prefix | string | '' | Prefisso (es. valuta) |
^ Suffix | string | '' | Suffisso |
----
===== TWvdSColorEdit =====
Selezione colore.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Color | TWvdSColor | clBlack | Colore selezionato |
^ ShowAlpha | Boolean | False | Mostra canale alpha |
^ ColorPalette | TWvdSColorPalette | cpDefault | Palette predefinita |
==== Events ====
| Event | Firma | Descrizione |
^ OnColorChanged | TNotifyEvent | Colore modificato |
----
===== TWvdSMaskEdit =====
Input con maschera.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Text | string | '' | Testo formattato |
^ EditValue | string | '' | Valore non formattato |
^ EditMask | string | '' | Maschera input |
^ MaskKind | TWvdSMaskKind | mkStandard | Standard, RegEx |
^ PlaceHolder | Char | '_' | Carattere segnaposto |
==== Sintassi Maschera ====
| Carattere | Significato |
^ 0 | Cifra (obbligatoria) |
^ 9 | Cifra (opzionale) |
^ L | Lettera (obbligatoria) |
^ ? | Lettera (opzionale) |
^ A | Alfanumerico (obbligatorio) |
^ a | Alfanumerico (opzionale) |
----
===== TWvdSRichEdit =====
Editor testo formattato.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Document | TWvdSDocument | nil | Documento RTF/HTML |
^ PlainText | string | '' | Accesso solo testo |
^ ShowToolbar | Boolean | True | Barra formattazione |
----
===== TWvdSTokenEdit =====
Input tag/token.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Tokens | TStrings | nil | Lista token |
^ AllowDuplicates | Boolean | False | Duplicati permessi |
^ MaxTokens | Integer | 0 | Max. token (0=illimitato) |
^ Separator | Char | ',' | Separatore per input testo |
==== Events ====
| Event | Firma | Descrizione |
^ OnTokenAdded | TTokenEvent | Token aggiunto |
^ OnTokenRemoved | TTokenEvent | Token rimosso |
----
===== TWvdSComboBoxEdit =====
Lista a discesa.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Items | TStrings | nil | Item statici |
^ ItemsSource | IEnumerable | nil | Dati bindati |
^ SelectedItem | TObject | nil | Item selezionato |
^ SelectedIndex | Integer | -1 | Indice selezionato |
^ DisplayMember | string | '' | Campo visualizzazione |
^ ValueMember | string | '' | Campo valore |
^ DropDownStyle | TWvdSDropDownStyle | dsDropDown | DropDown, DropDownList |
==== Events ====
| Event | Firma | Descrizione |
^ OnSelectedIndexChanged | TNotifyEvent | Selezione modificata |
----
===== TWvdSLookupEdit =====
Dropdown lookup con ricerca.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ ItemsSource | IEnumerable | nil | Sorgente dati |
^ SelectedValue | TValue | nil | Valore selezionato |
^ DisplayMember | string | '' | Campo visualizzazione |
^ ValueMember | string | '' | Campo valore |
^ SearchMode | TWvdSSearchMode | smStartsWith | StartsWith, Contains |
^ PopupWidth | Integer | 0 | Larghezza popup (0=Auto) |
----
===== TWvdSCheckedComboBox =====
Dropdown multi-selezione.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ ItemsSource | IEnumerable | nil | Tutti gli item |
^ SelectedItems | IList | nil | Item selezionati |
^ SelectAllText | string | '(Select All)' | Testo "Seleziona tutti" |
----
===== TWvdSMRUEdit =====
Input Most Recently Used.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Text | string | '' | Testo attuale |
^ Items | TStrings | nil | Lista MRU |
^ MaxItems | Integer | 10 | Max. voci |
^ StorageKey | string | '' | Chiave persistenza |
----
===== TWvdSPopupEdit =====
Input con popup personalizzato.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ DisplayText | string | '' | Testo visualizzato |
^ PopupContent | TWvdSFrameworkElement | nil | Contenuto popup |
^ PopupWidth | Integer | 300 | Larghezza popup |
^ PopupHeight | Integer | 200 | Altezza popup |
----
===== TWvdSRatingControl =====
Valutazione a stelle.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ Value | Double | 0 | Valutazione (0-ItemCount) |
^ ItemCount | Integer | 5 | Numero stelle |
^ AllowHalf | Boolean | False | Mezze stelle permesse |
^ IsReadOnly | Boolean | False | Sola lettura |
----
===== TWvdSRangeTrackBar =====
Slider selezione intervallo.
==== Namespace ====
''WvdS.UI.Controls.Editors''
==== PXAML ====
==== Properties ====
| Property | Tipo | Default | Descrizione |
^ MinValue | Double | 0 | Limite inferiore |
^ MaxValue | Double | 100 | Limite superiore |
^ Minimum | Double | 0 | Minimo assoluto |
^ Maximum | Double | 100 | Massimo assoluto |
^ Step | Double | 1 | Passo |
==== Events ====
| Event | Firma | Descrizione |
^ OnRangeChanged | TRangeEvent | Intervallo modificato |
----
===== Vedi anche =====
* [[.:control-bibliothek|Libreria Control]]
* [[.:api-controls-basic|API Basic Controls]]
* [[.:api-controls-data|API Data Controls]]