How to change the background color of a item at runtime [message #299100] |
Sat, 09 February 2008 05:50  |
dillango
Messages: 145 Registered: January 2008
|
Senior Member |
|
|
Hi,
I would like to highlight (by way of changing background color) the coloum where the cursor is placed. How can I change it at run time?
I tried using set_item_property(itemname, background_color,'color name') but it did not worked.
Thanks in advance for your answer.
ILANGO
|
|
|
|
|
Re: How to change the background color of a item at runtime [message #299311 is a reply to message #299241] |
Mon, 11 February 2008 06:41   |
dillango
Messages: 145 Registered: January 2008
|
Senior Member |
|
|
Yes Mr.David.
I am using tabular form (Time sheet) and need to differntiate "weeklyoff" by highlighting the row.
I could able to partially succeed using set_item_instance property.
Mr.David, I personally looking your email which I need to sortout many issues which I am facing in my present project.
Can you please get in touch with d.ilango@yahoo.com ?
Regards, ILANGO
|
|
|
|
|
|
Re: How to change the background color of a item at runtime [message #300631 is a reply to message #299676] |
Sat, 16 February 2008 23:54   |
thomasscaria
Messages: 21 Registered: July 2007 Location: Kuwait
|
Junior Member |
|
|
djmartin wrote on Tue, 12 February 2008 23:25 | If 'weeklyoff' is NOT the current row then use Littlefoot's suggestion of the 'SET_ITEM_INSTANCE_PROPERTY' for the items in that row. I would set it as part of the 'post-query' trigger on the block, that is, "if :blk.row_type = 'weeklyoff' then do_set_items; end if;"
If you ONLY work on the 'weeklyoff' row then consider the 'Current Record Visual Attribute Group' at the block level at it is less coding.
David
|
how can this be achieved in forms 4.5 vesrion
regards
thomas
|
|
|
|
|
Re: How to change the background color of a item at runtime [message #300969 is a reply to message #300968] |
Mon, 18 February 2008 19:13  |
 |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Please do not PM questions. Just post them.
Try using the 'Current Record Visual Attribute Group' at the block level, and maybe at the item level. Make sure that the 'Width' is greater then 5.
You could also play with the Foreground and Background Colors.
Review the 'set_item_instance_property(visual_attribute)'.
David
|
|
|