Kbase P18919: How to get the unique identifier of a text widget?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/12/2003 |
|
Status: Unverified
GOAL:
How to get the unique identifier of a text widget?
FIX:
The text widget does not normally have a unique identifier.
However, according to the Language Reference manual (for Widgets, Handles etc.), when the Text widget is documented, it would appear that they are actually referring to a Fill-in which is has the VIEW-AS TEXT attribute set. If you do this, then the handle of the widget is of type TEXT.
Therefore, to create a text widget whose attributes can be modified programmatically, do the following:
1) Use a fill-in
2) Check the No-Label and View-As-Text toggle boxes on its Property Sheet
3) Choose the "Advanced..." button on the Property Sheet, and enter an initial value.
The fill-in will have the same appearance as a text widget selected from the palette, and it can be referenced in, and manipulated by, the code.