Home » Developer & Programmer » Forms » Background color
Background color [message #483844] Thu, 25 November 2010 01:20 Go to next message
ankit3010
Messages: 17
Registered: November 2010
Location: Indore
Junior Member
Hi,
I have a text item in the control block and I want to change the background color at runtime..I used set_item_property but it doesn't working...
I used WHEN-MOUSE-MOVE TRIGGER at the field level and the code
is
SET_ITEM_PROPERTY(':master_blk.department', FOREGROUND_COLOR, 'VISUAL');
'VISUAL' is the visual attribute name and before making the visual attribute I used
SET_ITEM_PROPERTY(':CONTROL.CREATE', FOREGROUND_COLOR, 'red');
but it was also not working..
What do I do?? Please suggest me...
Re: Background color [message #483860 is a reply to message #483844] Thu, 25 November 2010 01:57 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Which Forms version do you use? Note that "MOUSE" triggers won't work in Forms versions newer than 6i (because of web-oriented technology).

Check this thread for some more information.
Re: Background color [message #483862 is a reply to message #483860] Thu, 25 November 2010 01:59 Go to previous messageGo to next message
ankit3010
Messages: 17
Registered: November 2010
Location: Indore
Junior Member
I am using 9i
Re: Background color [message #483863 is a reply to message #483862] Thu, 25 November 2010 02:02 Go to previous messageGo to next message
ankit3010
Messages: 17
Registered: November 2010
Location: Indore
Junior Member
So wat do I do..
Re: Background color [message #483865 is a reply to message #483863] Thu, 25 November 2010 02:14 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
"Check this thread for some more information". Basically - Java is the keyword.

Unless, of course, you agree to change item background color differently (such as in PRE-TEXT-ITEM trigger).
Re: Background color [message #483867 is a reply to message #483865] Thu, 25 November 2010 02:20 Go to previous messageGo to next message
ankit3010
Messages: 17
Registered: November 2010
Location: Indore
Junior Member
Where is the thread Sir..
Sir I used WHEN-MOUSE-ENTER TRIGGER
and write the same code as above but no work....

[Updated on: Thu, 25 November 2010 02:21]

Report message to a moderator

Re: Background color [message #483874 is a reply to message #483867] Thu, 25 November 2010 03:05 Go to previous message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Link to a thread is in my first message in this topic.
Previous Topic: Code of Creating View in Pre_Form
Next Topic: autonumber field - not/not null [merged]
Goto Forum:
  


Current Time: Thu Sep 19 17:24:24 CDT 2024