Progress
Language Tutorial
for Windows


Using Widget Attributes

Since a widget attribute is a value, it can be an operand in an expression. For some widget attributes, you can assign the result of an expression to a widget attribute, thereby changing that characteristic of the widget. For example, you could move a widget over five columns by adding five to the current value of the COL attribute.

This is the syntax for referencing a widget attribute value.

SYNTAX
widget-name:attribute-name [ IN FRAME frame-name ] 

You only need the IN FRAME option when two or more frames have a widget of the same name. Here’s an example of using a widget attribute in an expression:

Mywidget:COL IN FRAME Myframe = Mywidget:COL IN FRAME Myframe + 5. 


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