|
|
|
Re: CHANGE COLOUR OF DIFFERENT TEXT ITEM [message #591450 is a reply to message #591446] |
Mon, 29 July 2013 00:43 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.gravatar.com/avatar/6a0d9643e9780b6294cd1b6bf4ec563d?s=64&d=mm&r=g) |
ashoktarun
Messages: 12 Registered: June 2013 Location: India
|
Junior Member |
|
|
I have three text box textbox1,textbox2,textbox3
i am using this when timer expired trig
if Get_Item_Property('TEXT1',BACKGROUND_COLOR)='r0g127b127' then
Set_Item_Property('TEXT2',BACKGROUND_COLOR,'r127g0b0');
elsif Get_Item_Property('TEXT2',BACKGROUND_COLOR)='r127g0b0' then
Set_Item_Property('TEXT3',BACKGROUND_COLOR,'r0g127b0');
elsif Get_Item_Property('TEXT3',BACKGROUND_COLOR)='r0g127b0' then
Set_Item_Property('TEXT4',BACKGROUND_COLOR,'r0g0b127');
elsif Get_Item_Property('TEXT4',BACKGROUND_COLOR)='r0g0b127' then
Set_Item_Property('TEXT1',BACKGROUND_COLOR,'r127g0b0');
end if;
its not working
[Updated on: Mon, 29 July 2013 00:46] Report message to a moderator
|
|
|
Re: CHANGE COLOUR OF DIFFERENT TEXT ITEM [message #591453 is a reply to message #591450] |
Mon, 29 July 2013 01:12 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](http://www.orafaq.com/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21818 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
It seems that none of IF conditions is met.
Check what GET_ITEM_PROPERTY returns (i.e. display its value using the MESSAGE built-in).
It might be possible that you have to initially set the BACKGROUND_COLOR (in WHEN-NEW-FORM-INSTANCE trigger, for example).
|
|
|