Programmieren mit dBASE PLUS: Klasse GridColumn

Aus Wikibooks


A column in a grid.

Syntax[Bearbeiten]

[<oRef> =] new GridColumn(<grid>)

<oRef>

A variable or property—typically an array element of the <grid> object’s columns array—in which to store a reference to the newly created GridColumn object.

<grid>

The Grid object that contains the GridColumn object.

spezielle Eigenschaften[Bearbeiten]

Die folgenden Tabellen enthalten die speziellen Eigenschaften und Methoden der Klasse GridColumn
(Spezielle Events und Methoden sind mit dieser Klasse nicht verbunden)
Eigenschaft Vorgabe Beschreibung
baseClassName GRIDCOLUMN Kennzeichnet das Objekt als Instanz der Klasse GridColumn.
className GRIDCOLUMN Kennzeichnet das Objekt als Instanz der abgeleiteten benutzerdefinierten Klasse. Wenn keine benutzerdefinierte Klasse existiert, gilt die Voreinstellung von baseClassName.
dataLink Das Field-Objekt, das mit dem GridColumn-Objekt verbunden ist.
editorControl The editable control that comprises the body of the grid in the column
editorType Default The type of editing control (0=Default, 1=EntryField, 2=CheckBox, 3=SpinBox, 4=ComboBox) in the column
headingControl The control that displays the grid column heading

Basis Eigenschaften[Bearbeiten]

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

parent
width

keine

keine

Beschreibung[Bearbeiten]

Each column in a grid is represented by a GridColumn object. Each GridColumn object is an element in the grid’s columns array, and contains a reference to a heading control and an edit control. You may assign different kinds of controls in different columns. The following types of controls are supported:

  • Entryfield
  • CheckBox
  • SpinBox
  • ComboBox

When these controls are used in a grid, they have a reduced property set. Each type of field has a default control type. Logical and boolean fields default to CheckBox. Numeric and date fields default to SpinBox.

Beispiele[Bearbeiten]