Home » Developer & Programmer » Forms » Use Text Tool in programming.... (forms 6i)
Use Text Tool in programming.... [message #441785] Wed, 03 February 2010 01:56 Go to next message
allianz2010
Messages: 101
Registered: October 2009
Location: Pakistan
Senior Member

Can i use Text tool in programming...

i just want to change color at run time of text tool....

i attached a picture must see...
Re: Use Text Tool in programming.... [message #441796 is a reply to message #441785] Wed, 03 February 2010 02:44 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It is a (graphic) text object (which belongs to a canvas), so I don't think that you can modify its color during runtime. If it was an item, sure - SET_ITEM_PROPERTY can do that.
Re: Use Text Tool in programming.... [message #441854 is a reply to message #441796] Wed, 03 February 2010 06:59 Go to previous messageGo to next message
allianz2010
Messages: 101
Registered: October 2009
Location: Pakistan
Senior Member

any other way to do that in forms 6i .....
Re: Use Text Tool in programming.... [message #441855 is a reply to message #441854] Wed, 03 February 2010 07:05 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Apart from setting the color during design? I wouldn't know.

P.S. How about creating a text (or display) item instead? Then you could use SET_ITEM_PROPERTY.

[Updated on: Wed, 03 February 2010 07:06]

Report message to a moderator

Re: Use Text Tool in programming.... [message #441857 is a reply to message #441855] Wed, 03 February 2010 07:48 Go to previous messageGo to next message
allianz2010
Messages: 101
Registered: October 2009
Location: Pakistan
Senior Member

then why we use forms 6i if we can not do any thing....

e.g
1. we can move focus in post-item or pre-item....
2. we can not use text tool at run time....

and many more......

Re: Use Text Tool in programming.... [message #441859 is a reply to message #441857] Wed, 03 February 2010 08:00 Go to previous messageGo to next message
cookiemonster
Messages: 13960
Registered: September 2008
Location: Rainy Manchester
Senior Member
allianz2010 wrote on Wed, 03 February 2010 13:48
then why we use forms 6i if we can not do any thing....

That's so obviously false I'm not even going to argue

Quote:

e.g
1. we can move focus in post-item or pre-item....

Huh?

Quote:

2. we can not use text tool at run time....


Of course you can, maybe not in the way you want though.

If you want an application that does exactly what you want in (almost - there are always some restrictions) all circumstances then go and learn java or .net or some other full blown programming language and write your application in that.
It'll take you a lot longer to write but you'll get more control.

Forms is a relatively quick way of creating screens that allow you to query and modify data in oracle databases. It does a lot of stuff for you - like locking and transactional control, which you'd have to code yourself in java or .net.
And because it does a lot of stuff for you it also comes with certain restrictions on what you can and can't do.
If you can't live with those restrictions then you are using the wrong tool.
Re: Use Text Tool in programming.... [message #441887 is a reply to message #441859] Wed, 03 February 2010 11:30 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
cookiemonster wrote on Wed, 03 February 2010 15:00

allianz2010

e.g
1. we can move focus in post-item or pre-item....

Huh?

I think it addresses restricted procedures (such as GO_ITEM or NEXT_RECORD) in those triggers. If so, well, you (@allianz2010) should read some documentation which explains why you can not do that.
Re: Use Text Tool in programming.... [message #446687 is a reply to message #441785] Wed, 10 March 2010 00:20 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Have you looked at Forms' 'visual attribute'?

David
Re: Use Text Tool in programming.... [message #446719 is a reply to message #446687] Wed, 10 March 2010 02:12 Go to previous messageGo to next message
allianz2010
Messages: 101
Registered: October 2009
Location: Pakistan
Senior Member

thanks your reply..
now i create a text tool and assign a visual attribute.. it..
and change the color of that attribute..
but it can not worked....
Re: Use Text Tool in programming.... [message #446727 is a reply to message #446719] Wed, 10 March 2010 03:02 Go to previous message
tamzidulamin
Messages: 132
Registered: October 2009
Location: Dhaka
Senior Member
Dear,

first you create a display item and assign a Character String value, which you want show like a TEXT.After that you use
SET_ITEM_PROPERTY built-in with change FOREGROUND COLOR
by using VISUAL_ATTRIBUTE properties.
Or you can use DISPLAY_ITEM built-in with VISUAL_ATTRIBUTE properties.


Regards,

Tamzidul Amin.
Previous Topic: how to attach a calender to date item in a form
Next Topic: Master Details
Goto Forum:
  


Current Time: Tue Dec 03 17:12:30 CST 2024