A single-line text input field in a grid column.

Syntax

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

Properties

The following tables list the properties and events of interest in the ColumnEntryfield class. (No methods are associated with this class.)

Property

Default

Description

baseClassName

COLUMNENTRYFIELD

Identifies the object as an instance of the ColumnEntryfield class

className

(COLUMNENTRYFIELD)

Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName

colorHighlight

 

The color of the text in the ColumnEntryfield object when the object has focus

colorNormal

WindowText
/Window

The color of the text in the ColumnEntryfield object when the object does not have focus

function

 

A text formatting function

memoEditor

 

The memo editor control used when editing a memo field

picture

 

Formatting template

validErrorMsg

Invalid input

The message that is displayed when the valid event fails

value

 

The value currently displayed in the ColumnEntryfield object

 

Event

Parameters

Description

key

<char expN>,
<position expN>,
<shift expL>,
<ctrl expL>

When a key is pressed. Return value may change or cancel keystroke.

valid

 

When attempting to remove focus. Must return true, or focus remains.

 

The following table lists the common properties, events, and methods of the ColumnEntryfield class:

Property

 

Event

 

Method

borderStyle
fontBold

fontItalic

fontName

fontSize

fontStrikeout

fontUnderline

 

hWnd
parent

speedTip

statusMessage

beforeCellPaint
onCellPaint

onGotFocus

onLeftDblClick
onLeftMouseDown

onLeftMouseUp

onLostFocus

onMiddleDblClick

onMiddleMouseDown
onMiddleMouseUp

onRightDblClick

onRightMouseDown

onRightMouseUp

none

Description

A ColumnEntryfield is a simplified Entryfield control in a grid column. When the enumerated editorType property of a GridColumn control is set to Entryfield, the column uses a ColumnEntryfield control, which is accessible through the GridColumn object’s editorControl property.

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.

If a mouse event is implemented for this control it overrides the matching grid level event.