Try OpenEdge Now
skip to main content
Programming Interfaces
Input/Output Processes : Creating Reports : Report basics : Text widgets
 
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. For example:
DEFINE FRAME Frame1
  sports2000.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. For example:
DEFINE VARIABLE lBalDue AS LOGICAL NO-UNDO LABEL "Balance Due?"
  VIEW-AS TOGGLE-BOX.

DEFINE FRAME Frame1
sports2000.Customer.Name /* default is a fill-in field */
lBalDue 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.