Programmieren mit dBASE PLUS: Klasse ColumnSpinBox

Aus Wikibooks


An entryfield with a spinner for entering numeric or date values in a grid column.

Syntax[Bearbeiten]

These controls are created by assigning the appropriate editorType to the GridColumn object.

spezielle Eigenschaften[Bearbeiten]

Die folgenden Tabellen enthalten die speziellen Eigenschaften und Events der Klasse
ColumnSpinBox. (Spezielle Methoden sind nicht mit dieser Klasse verbunden.)
Eigenschaft Vorgabe Beschreibung
baseClassName COLUMNSPINBOX Kennzeichnet das Objekt als Instanz der Klasse ColumnSpinBox.
className COLUMNSPINBOX Kennzeichnet das Objekt als Instanz der abgeleiteten benutzerdefinierten Klasse. Wenn keine benutzerdefinierte Klasse existiert, gilt die Voreinstellung von baseClassName.
colorHighlight The color of the text in the ColumnSpinBox object when the object has focus
colorNormal WindowText /Window The color of the text in the ColumnSpinBox object when the object does not have focus
function Eine Funktion zur Textformatierung.
picture Eine Formatierungsschablone.
rangeMax Der Maximalwert.
rangeMin Der Minimalwert.
rangeRequired false Gibt an, ob die Bereichsgrenzen eingehalten werden müssen, auch wenn keine Änderung stattgefunden hat.
step 1 Der Wert, der bei Verwendung des Wippreglers hinzugezählt oder abgezogen wird.
validErrorMsg Unzulässige Eingabe Diese Meldung wird angezeigt, wenn das Event valid fehlschlägt.
value The value currently displayed in the ColumnSpinBox object

spezielle Events[Bearbeiten]

Event Parameter Beschreibung
valid Wird bei dem Versuch ausgelöst, den Fokus zu verlagern, und muß True zurückgeben, damit der Fokus verlagert werden kann.

Basis Eigenschaften[Bearbeiten]

Die folgende Tabelle enthält die Basis-Eigenschaften, -Events und -Methoden
der Klasse ColumnSpinBox
Eigenschaft Event Methode

borderStyle
fontBold
fontItalic
fontName
fontSize
fontStrikeout
fontUnderline
hWnd
parent
speedTip
statusMessage

beforeCellPaint
onCellPaint
onGotFocus
onLostFocus

keine

Beschreibung[Bearbeiten]

A ColumnSpinBox is a simplified SpinBox control in a grid column. When the enumerated editorType property of a GridColumn control is set to SpinBox, the column uses a ColumnSpinBox control, which is accessible through the GridColumn object’s editorControl property. Only the cell that has focus appears as a spinbox. All other cells in the column which do not have focus appear as ColumnEntryfield controls instead, with no spinner control. As with all column controls, the dataLink and width for the control is in the parent GridColumn object, not the control itself. The height is controlled by the cellHeight of the grid.

Beispiele[Bearbeiten]