Home » Developer & Programmer » Forms » how to change the color of the text (forms 6i windows xp)
how to change the color of the text [message #547203] Tue, 13 March 2012 05:48 Go to next message
mrdb
Messages: 62
Registered: December 2009
Location: dubai
Member

hi,

i want to change the text background color as red
ex: if desc is the field in the forms and when i type the word
china in that field then that china backgroud color should change when i move to next item to red for that record alone


in the key_next_item trigger i wrote this

set_item_property('desc' backgroud_colour,'RED');


IS THIS RIGHT
only that particular record should change

Re: how to change the color of the text [message #547206 is a reply to message #547203] Tue, 13 March 2012 05:54 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
SET_ITEM_INSTANCE_PROPERTY should be used.
Re: how to change the color of the text [message #547207 is a reply to message #547206] Tue, 13 March 2012 05:59 Go to previous messageGo to next message
mrdb
Messages: 62
Registered: December 2009
Location: dubai
Member

CAN YOU ADVICE THE ATTRIBUTE ALSO
PLS
Re: how to change the color of the text [message #547208 is a reply to message #547207] Tue, 13 March 2012 06:01 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Open Forms Help and see for yourself.
Re: how to change the color of the text [message #547210 is a reply to message #547208] Tue, 13 March 2012 06:06 Go to previous messageGo to next message
mrdb
Messages: 62
Registered: December 2009
Location: dubai
Member

MEANS YOU DON'T KNOW RIGHT...
THEN DON'T ANSWER OK.
Re: how to change the color of the text [message #547212 is a reply to message #547210] Tue, 13 March 2012 06:14 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
Do not post in all caps. It is considered shouting, and therefore rude, on all internet forums.

You need to learn to find stuff out for yourself. We are here to help with difficult problems, not to read the documentation for you. Go look it up.


EDIT: missing word

[Updated on: Tue, 13 March 2012 06:15]

Report message to a moderator

Re: how to change the color of the text [message #547213 is a reply to message #547210] Tue, 13 March 2012 06:15 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
May be, but the difference between you and me is that you need that information (but are too lazy to search for it), and I don't need it. As far as I'm concerned, I can live with it. I just wonder how do you plan to paint that background. Wait forever until someone feels sorry and spoon feeds you, or what?
Re: how to change the color of the text [message #547216 is a reply to message #547203] Tue, 13 March 2012 06:22 Go to previous messageGo to next message
vinkum
Messages: 19
Registered: October 2011
Location: India
Junior Member

Correct reply Littlefoot.

people here can only give banaana,not peeling it and feeding it to you mrdb.
Re: how to change the color of the text [message #547227 is a reply to message #547216] Tue, 13 March 2012 06:50 Go to previous messageGo to next message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
dont be displeased mr/ms @mrdb they are all good peoples here but they trying to teach us only its good if they allowing u to do your self like this u will learn more anyways here is your visual_attribute example.


thanks
Re: how to change the color of the text [message #547236 is a reply to message #547227] Tue, 13 March 2012 08:05 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
@owais_baba - We're trying to encourage the OP to look up things himself, so you spoon feed him, while telling him he'll learn more if he does it himself (presumably you don't want him to learn more?).

We say you need to use set_item_instance_property, so you post an example of set_item_property.

You've seriously missed the point(s).
Re: how to change the color of the text [message #547249 is a reply to message #547236] Tue, 13 March 2012 09:48 Go to previous messageGo to next message
mrdb
Messages: 62
Registered: December 2009
Location: dubai
Member

owais_baba
Thanks for your polite and gentle reply first.
The example attached by you is good i got what i required.
people like you always there to encourage the beginners.. keeping going
Thanks..
Re: how to change the color of the text [message #547326 is a reply to message #547203] Tue, 13 March 2012 13:29 Go to previous messageGo to next message
kandimalla
Messages: 17
Registered: November 2011
Location: Bahrain
Junior Member


Use Visual Attributes............
using Visual attributes, u can change the color of the text,
Back ground colour, forground colour etc............
Re: how to change the color of the text [message #547902 is a reply to message #547210] Sun, 18 March 2012 13:01 Go to previous messageGo to next message
dude4084
Messages: 222
Registered: March 2005
Location: Mux
Senior Member
mrdb wrote on Tue, 13 March 2012 16:06
MEANS YOU DON'T KNOW RIGHT...
THEN DON'T ANSWER OK.



Shocked Shocked Shocked

Little Foot is a Ph.D. Dr. for me on this site.


One must not talk to him in this way.

Hence i register my protest.
Re: how to change the color of the text [message #547904 is a reply to message #547902] Sun, 18 March 2012 14:33 Go to previous messageGo to next message
kandimalla
Messages: 17
Registered: November 2011
Location: Bahrain
Junior Member

First,
Let me Know,
can't we change the Background color using visual
attribute.........
Mr.Littlefoot is expert....and dynamic
He is genious.......
this is universal truth , no doubt abt this.....
We are here to share the knowledge....(i think)...
If i am wrong....Plz..correct me....
If u say do not answer, what it means?
Plz..do not hurt others............

Re: how to change the color of the text [message #547957 is a reply to message #547904] Mon, 19 March 2012 03:37 Go to previous message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Thank you, both, but - I'm not the one you think I am. I'm far from being and expert - I learn new things daily, simply by reading these forums. There are million things I have never worked with or done so ... take it easy. A true Forms expert is David (djmartin), but he doesn't contribute discussions here any more (that's really bad news, but that's the way it is).

Anyway: I like the idea of sharing information. There are some complex things that require detailed (more or less) explanation; otherwise, it is difficult to solve the problem or it requires much time & effort to figure it out. On the other hand, there are very basic questions that can easily be learnt simply by reading the searchable documentation (such as the one mentioned here). We were all newbies, once. It is attitude that matters.
Previous Topic: Forms 10G & PDF Viewer
Next Topic: oracle developer 10g (forms and reports) (2 MERGED)
Goto Forum:
  


Current Time: Fri Jul 05 23:15:15 CDT 2024