Consultor Eletrônico



Kbase 16826: How To Modify Attributes of a Text Widget created in the UIB
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How To Modify Attributes of a Text Widget created in the UIB

When you create a text widget in the UIB by selecting it from the
palette, the UIB places a literal character string in the frame; it
does not create a variable. This is why the text widget is not listed
among the objects when in the Section Editor, you right-mouse-click
and select Insert->Object Name (although it is listed when you choose
the List button on the UIB toolbar). It is also why referencing the
widget by name in the code results in the following error:

** Unknown Field or Variable name - <widget-name>. (201)

To create a text widget whose attributes can be modified programmatic-
ally, use a fill-in, and check the No-Label and View-As-Text toggle
boxes on its Property Sheet, then 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.

Progress Software Technical Support Note # 16826