Programmieren mit dBASE PLUS: Klasse ColumnComboBox

Aus Wikibooks


A combobox 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 der Klasse ColumnComboBox.
(Spezielle Events und Methoden sind mit dieser Klasse nicht verbunden.)
Eigenschaft Vorgabe Beschreibung
baseClassName COLUMNCOMBOBOX Kennzeichnet das Objekt als Instanz der Klasse ColumnComboBox.
className COLUMNCOMBOBOX 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 ColumnComboBox object when the object has focus
colorNormal WindowText /Window The color of the text in the ColumnComboBox object when the object does not have focus
dataSource The option strings of the ColumnComboBox object
dropDownHeight Die Anzahl der Optionen in der Dropdown-Liste.
dropDownWidth Der Breite der Dropdown-Liste in aktuellen Maßeinheiten des Formulars.
function Eine Funktion zur Textformatierung.
picture Eine Formatierungsschablone.
sorted False Gibt an, ob die Optionen sortiert werden.
value The value currently displayed in the ColumnComboBox object

Basis Eigenschaften[Bearbeiten]

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

borderStyle
fontBold
fontItalic
fontName
fontSize
fontStrikeout
fontUnderline
hWnd
mousePointer
parent
speedTip
statusMessage

beforeCellPaint
onCellPaint
onGotFocus
onLostFocus

keine

Beschreibung[Bearbeiten]

A ColumnComboBox is a simplified ComboBox control in a grid column. The combobox is always the DropDownList style. When the enumerated editorType property of a GridColumn control is set to ComboBox, the column uses a ColumnComboBox control, which is accessible through the GridColumn object’s editorControl property. Only the cell that has focus appears as a combobox. All other cells in the column which do not have focus appear as ColumnEntryfield controls instead, with no drop-down 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]