Home » Developer & Programmer » Forms » changing item color dynamically
changing item color dynamically [message #86874] Tue, 16 November 2004 02:04 Go to next message
sandeep
Messages: 110
Registered: October 2000
Senior Member
hi,
I want to change the foreground color of an item...my code is
set_item_property('master.di',foreground_color,'red');
this is not working.but if i give the color code then it works....is there any way i can directly give the color itself as in my example...
thanks in advance
Re: changing item color dynamically [message #276637 is a reply to message #86874] Thu, 25 October 2007 13:02 Go to previous messageGo to next message
trevisolli
Messages: 2
Registered: June 2007
Location: Brazil
Junior Member

Hi, Sandeep.

Try this form:

SET_ITEM_PROPERTY(ITEM_NAME,FOREGROUND_COLOR,'r100g0b0');

[]s.
Re: changing item color dynamically [message #276652 is a reply to message #276637] Thu, 25 October 2007 18:07 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Typically, this is done using visual attributes. Search this forum for 'visual attribute'.

David
Previous Topic: Problem With Trigger WHEN-TREE-NODE-SELECTED
Next Topic: Expanding width in web form layout in 10g
Goto Forum:
  


Current Time: Sun Dec 04 18:43:22 CST 2016

Total time taken to generate the page: 0.04459 seconds