how to change frame property at runtime? [message #81639] |
Fri, 07 March 2003 10:58 |
kim
Messages: 116 Registered: December 2001
|
Senior Member |
|
|
hello! i would like to change the label on a frame during runtime. can anyone help me with how to do this? i thought there was something like set_graphics_property, but i am not sure. thanks.
|
|
|
Re: how to change frame property at runtime? [message #81641 is a reply to message #81639] |
Fri, 07 March 2003 12:54 |
Paul
Messages: 164 Registered: April 1999
|
Senior Member |
|
|
Nope, you can't change the properties of graphic objects. However, like most forms limitations, there is a way around this one.
1. In the Layout Editor, create a Display Item, make it
long enough to hold the longest text string you will
ever use as a label.
2. Place it where the frame label would normally be.
3. Set its background color to match your canvas, its
bevel property to NONE.
You now can change the 'label' text by just changing
the value of the display item like:
:block1.frame_title_display_item := 'Hello ' || USER;
Hope this helps,
Paul
|
|
|