Table of Contents

TextField Widget

Basics

The TextField is the Widget that will probably be used most frequently. It is a simple Widget that just displays its value as a text field. It can be used for text, numbers, and pretty well anything that needs to be displayed as a single line of characters. Renderers specific for the particular Field type control formatting e.g. number of decimal places for decimal numbers. Other options include setting the font and alignment options. It has this icon in the form builder design mode toolbar:

The examples below show 3 TextField Widgets, bound to a Text, Decimal and Integer Field from left to right.



A TextField Widget can only be used to display a value from a single Field. The Field name is displayed as the default title in the border.

Settings

To edit the settings in Design mode double click on the Widget and the settings editor will open. In Browse mode double click in the border area (not the main area where values are displayed. Alternatively select the widget in either mode by single clicking on it and then click on the Widget Settings icon () in the Form toolbar.

Editing values

To edit a value in a TextField Widget in Browse mode double click in the main area of the Widget (where the value is displayed) and the widget switches to edit mode. Make your changes and hit the 'Return' key to commit the change. Hit the 'ESC' key to cancel the editing.

Query mode

In query mode you specify values by typing the operator and the term into the text field. e.g. '< 500' or '= active'. The operator can also be specified or changed using the right click popup menu.



Copyright © 1998-2008 ChemAxon Ltd. All rights reserved.