Progress
Language Tutorial
for Character


Text Widgets

The text widget displays textual data without the decorations native to your windowing system. This means that data displays more compactly, so more iterations fit in a single display or printed page.

If you are working with fields or variables that use the fill-in field as the default data widget, then the USE-TEXT option of the frame phrase quickly converts the fill-in fields to text widgets. Here is an example:

DEFINE FRAME Frame1
  sports.Customer.Name
    WITH DOWN USE-TEXT CENTERED THREE-D. 

If the default data widget is anything other than a fill-in field or text widget, you need to use the VIEW-AS TEXT option of the format phrase on each widget to convert the widget to a text widget. Here is an example:

DEFINE VARIABLE Bal-due AS LOGICAL LABEL "Balance Due?" 
    VIEW-AS TOGGLE-BOX.

DEFINE FRAME Frame1
  sports.Customer.Name  /* default is a fill-in field */
  Bal-due VIEW-AS TEXT /* default is a toggle box */
    WITH DOWN USE-TEXT CENTERED THREE-D. 

Remember that the default data representation for a field comes from the schema of the database, while the default for a variable comes from the DEFINE VARIABLE statement.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095