background colour. [message #85118] |
Wed, 02 June 2004 21:09 |
pinky
Messages: 26 Registered: May 2002
|
Junior Member |
|
|
how to change background colour of a text item
at runtime
i have a button and a text item T1
wht i want is that when i pressed the button
the background of the text item will change
but HOW ... ?
|
|
|
Re: background colour. [message #85119 is a reply to message #85118] |
Wed, 02 June 2004 23:56 |
Himanshu
Messages: 457 Registered: December 2001
|
Senior Member |
|
|
Hi,
Make use of Set item property in When-button-pressed trigger of your Button as follows:
First make a Visual Attribute and in its Property pallete set the Background colour to , say RED.
Then write the following code in When-Button-pressed trigger:
Set_item_property('EMP.EMPNO',VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE5');
HTH
Regards
Himanshu
|
|
|