Progress
Language Tutorial
for Character
Changing Widget Characteristics Programming Example
This example changes the characteristics of a widget at different points in a procedure:
- Open
lt-07-01.p
and run it. The following display appears:
![]()
The characteristics of the fill-in field widget in this example are either default characteristics or characteristics defined with the DEFINE VARIABLE statement.
- Choose the second button. The new display shows the same variable with a new set of characteristics established by the format phrase and frame phrase in a DEFINE FRAME statement.
- Choose the third button. This display shows the variable with another set of characteristics. A format phrase and frame phrase on a screen I/O statement (ENABLE) defined these characteristics.
Now, pause your mouse pointer over the Exit button. Notice a small piece of text that displays. It is called a ToolTip. A ToolTip is a brief text piece that you can optionally define for any of the widgets that will be presented in this chapter. You’ll hear more about ToolTips throughout the chapter and see a few more examples of how to use them.
- Choose Exit and press SPACEBAR to return to the Procedure Editor.
Here is the code for this example:
NOTE: The THREE-D option is relevant only on a Windows client; it is ignored by a character client.These notes explain the code highlights:
- The DEFINE VARIABLE statement establishes the default characteristics and the optional characteristics of the widget associated with the variable.
- This DEFINE FRAME statement changes no characteristics of the variable.
- This DEFINE FRAME statement alters the characteristics of the widget with both the format and frame phrases.
- This run-time screen I/O statement defines a new frame and alters the characteristics of the widget with both the format and frame phrases.
- Because Progress creates one of the frames used in this procedure at run time, the trigger definitions that reference that frame must follow the run-time frame definition.
NOTE: The TOOLTIP attribute noted in the code example is ignored when this code is run on a character client.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |