Home » Developer & Programmer » Forms » Change the color of disable text item (Oracle 9i, dev 6i)
Change the color of disable text item [message #322800] Mon, 26 May 2008 04:54 Go to next message
imran_nu
Messages: 55
Registered: February 2007
Location: Islamabad
Member

Hi Experts

I am facing a problem of changing the color of disable text item.
The display color is gray whereas the desired color is blue....
I have tried to achieve it by changing the property enable,insert_allowed,update_allowed=false and change the color by set_item_property(item,foreground_color,'blue') but no result.

No clue was found on this forum regarding the above problem except the one which i tried as above...


Thanks
Re: Change the color of disable text item [message #322962 is a reply to message #322800] Mon, 26 May 2008 23:36 Go to previous messageGo to next message
misragopal
Messages: 125
Registered: June 2005
Location: New Delhi, india
Senior Member

Simply,
# Create one visual attribute.
# Set forground color there.
# Apply this Visual attribute on runtime(by set_item_property).
Re: Change the color of disable text item [message #323002 is a reply to message #322962] Tue, 27 May 2008 00:56 Go to previous messageGo to next message
imran_nu
Messages: 55
Registered: February 2007
Location: Islamabad
Member

I have tried your solution.... but its not working...

The disable item gets the default color (gray)....
For ease....i have attached my form which would work by connecting through scott/tiger...

Appreciate your response
  • Attachment: test.fmb
    (Size: 44.00KB, Downloaded 279 times)
Re: Change the color of disable text item [message #323104 is a reply to message #322800] Tue, 27 May 2008 05:30 Go to previous messageGo to next message
athar.fitfd@hotmail.com
Messages: 193
Registered: October 2007
Location: pakistan
Senior Member
make it a display item and then try to change the color.

and change the color at design time
Re: Change the color of disable text item [message #323117 is a reply to message #323104] Tue, 27 May 2008 06:12 Go to previous messageGo to next message
misragopal
Messages: 125
Registered: June 2005
Location: New Delhi, india
Senior Member

Yes i do agree with athar. you can't change foreground color of disabled item. (but you can change background color). So it would be fine if you change this 'disabled' item to 'Display' item.

[Updated on: Tue, 27 May 2008 06:17]

Report message to a moderator

Re: Change the color of disable text item [message #323172 is a reply to message #323117] Tue, 27 May 2008 09:42 Go to previous message
imran_nu
Messages: 55
Registered: February 2007
Location: Islamabad
Member

It has served my purpose

Thanks for the reply
Previous Topic: problem installing forms and reports
Next Topic: Anchoring Pop Up
Goto Forum:
  


Current Time: Mon Dec 05 10:54:08 CST 2016

Total time taken to generate the page: 0.05194 seconds