Class
DBKit.Slider
DBKit.Slider
Description
Can display and edit the column value of the current row of the database table to which it has been assigned.
It displays the column value as a slider.
Only the members declared by DBKit.Slider itself are described here; for the inherited members, see the parent class.
Properties
Name |
Type |
Read-Only |
Shared |
|---|---|---|---|
Methods
Name |
Parameters |
Returns |
Shared |
|---|---|---|---|
Events
Name |
Parameters |
Returns |
|---|---|---|
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
Property descriptions
DBKit.Slider.ColumnName
ColumnName As String
The name of the database column whose value this control displays and edits.
If blank, the control's name is used as the column name. The name may be qualified with a table name (for example "tablename.columnname") when the control shows a column from a related table.
DBKit.Slider.DisplayName
DisplayName As String
A user-friendly name for the control, shown to the user in place of the column name (for example in the InvalidValueMessage).
DBKit.Slider.InvalidValueMessage
InvalidValueMessage As String
The message displayed when the control is mandatory but its value is not above the slider's minimum value. Use <$1> as a placeholder for the control's display name and <$2> as a placeholder for the slider's minimum value.
The default is "<$1> must have a value greater than <$2>."
DBKit.Slider.Mandatory
Mandatory As Boolean
If True, the slider's value must be above its minimum value before the row can be saved. When a row is saved while a mandatory control's value is not above the minimum value, the InvalidValueMessage is displayed and the save is cancelled.
Method descriptions
DBKit.Slider.TableName
TableName() As String
Returns the name of the database table the control's column belongs to. If the ColumnName is qualified with a table name (for example "tablename.columnname"), that table name is returned; otherwise the table is resolved from the control's layout.
Event descriptions
DBKit.Slider.RowChanged
RowChanged(row As DBKit.Row)
The current row (passed to the event) has been changed.
DBKit.Slider.RowCreated
RowCreated(row As DBKit.Row)
A new row (passed to the event) was just created and is now the current row.
DBKit.Slider.RowDeleted
RowDeleted(row As DBKit.Row)
The current row (passed to the event) has been deleted.
DBKit.Slider.RowEditing
RowEditing(row As DBKit.Row)
The current row (passed to the event) is being edited by the user.
DBKit.Slider.RowLoaded
RowLoaded(row As DBKit.Row)
The current row (passed to the event) has been loaded.
DBKit.Slider.RowNotSelected
RowNotSelected
There is no row currently selected.
DBKit.Slider.RowSaved
RowSaved(row As DBKit.Row)
The current row (passed to the event) has been saved.
DBKit.Slider.RowSaving
RowSaving(row As DBKit.Row)
The current row (passed to this event) is about to be saved.
DBKit.Slider.RowUndone
RowUndone(row As DBKit.Row)
The changes made to the current row (passed to this event) have been undone.
Notes
Localization
Localize the control's user-facing text (InvalidValueMessage) the standard Xojo way: assign a dynamic constant to each property and provide translations for as many languages as you need, or localize the property values directly.
Compatibility
Project Types |
Desktop |
Operating Systems |
All |
See also
DesktopSlider parent class; DBKit.Row class.