Home » Developer & Programmer » Forms » background colour.
background colour. [message #85118] Wed, 02 June 2004 21:09 Go to next message
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 Go to previous message
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
Previous Topic: Help me as soon as possible for error :=ORA-01026 multiple buffers of size > 4000 in the bind list
Next Topic: Forms Questions
Goto Forum:
  


Current Time: Wed May 01 09:23:11 CDT 2024