Next Previous Up Top Contents Index

8 DUIM-Gadgets Library

8.6 Text gadgets

A text gadget is a gadget into which you can type textual information. There are three different classes of text gadget available in DUIM, each of which is a subclass of the <text-gadget> class.

<text-field>

This is the most basic type of text gadget: the single line edit control. A text field is a gadget into which you can type a single line of text.

<text-editor>

This is the multiple line edit control, and provides a much richer text editing environment that a text field. This class can be use as the basis for any editing tool, from a simple memo facility to a complex text editor.

<password-field>

A password field is really a specialized version of a text field. where the text typed into the gadget is not reflected on the screen. As implied by the name of the class, this type of gadget is most useful when you need to keep the information typed into the field private in some way, such as when implementing a password facility in an application. Depending on the platform you are developing for, any text that you type into a password field is either replaced by asterisks on the screen, or not reflected at all.

Figure 8.5 Text gadgets


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index