Home » Developer & Programmer » Forms » CHANGE COLOUR OF DIFFERENT TEXT ITEM
CHANGE COLOUR OF DIFFERENT TEXT ITEM [message #591444] Sun, 28 July 2013 23:47 Go to next message
ashoktarun
Messages: 12
Registered: June 2013
Location: India
Junior Member
HELLO,

I HAVE THREE TEXT ITEM I WANT to change color of each text box randomly....
Re: CHANGE COLOUR OF DIFFERENT TEXT ITEM [message #591445 is a reply to message #591444] Sun, 28 July 2013 23:51 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
what does this question have to do with SQL or PL/SQL?

Is this question about Forms problem & solution.
Re: CHANGE COLOUR OF DIFFERENT TEXT ITEM [message #591446 is a reply to message #591445] Mon, 29 July 2013 00:07 Go to previous messageGo to next message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
SET_ITEM_PROPERTY built-in can change item color.

What do you call "randomly"? When is it supposed to happen? All the time your form is running? If so, try timer.
Re: CHANGE COLOUR OF DIFFERENT TEXT ITEM [message #591450 is a reply to message #591446] Mon, 29 July 2013 00:43 Go to previous messageGo to next message
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
Littlefoot
Messages: 21807
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).
Previous Topic: FRM- 93652
Next Topic: get_item_property
Goto Forum:
  


Current Time: Tue Apr 23 17:32:10 CDT 2024