WantReturn

[property icon] WantReturn

Instructs the control to treat a RETURN as a normal carriage return

Read-only This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: Edit


[property icon] WantReturn

Return key should send char event

Read-only This is a style property that is only available in the forms designer. It is possible to modify this programmatically through the Style property in the Create event.

Applies to: Grid

Introduced in KCML version 5.02


>

WantReturn

If set to TRUE the edit control will treat a RETURN as a normal carriage return character. This is useful with multiline edit boxes where RETURN is required to mark the end of a paragraph. It can also allow RETURN to be returned by a Char() event. This is a design time only property that has no effect if changed under program control.

Grid

If set to TRUE the edit control in a grid cell will treat a RETURN as a normal carriage return character. It can also allow RETURN to be returned by a Char() event.

If the cell is not editable, but has focus, and .WantReturn is TRUE then a click and a double click event will be generated if RETURN is pressed. A single click event will be generated for SPACE. This permits a keyboard only simulation of a mouse.

This is a design time only property that has no effect if changed under program control. It applies to the whole grid and cannot be applied to individual cells in isolation.

See also

Edit methods, properties and events. Grid methods, properties and events.