• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1819
  • Last Modified:

oracle-forms: got_focus/lost_focus..triggers

I have a text item and I want to change the backgroud color whenever user enter the item (with mouse or kbd) in order to change the data in that field.
And I want to set the background to initial color when user leave the item...something like 'got_focus'/'lost_focus' events.

How to do this in Oracle forms? I dont find the equivalent triggers.
0
Alta_
Asked:
Alta_
  • 2
1 Solution
 
kretzschmarCommented:
use the pre-text-item and post-text-item triggers to change your color like


SET_ITEM_PROPERTY('BLOCKNAME.ITEMNAME',Background_Color,'r25g75b0');

meikl ;-)
0
 
Alta_Author Commented:
Thanks
0
 
Alta_Author Commented:
But why the color that I set with

SET_ITEM_PROPERTY('BLOCKNAME.ITEMNAME',Background_Color,
'r75g100b100');

is not the color that I wanted..the color looks different when I run the form...than the color in the property palette (for example dark color instead light blue color).
There is other way to specify colors in oracle forms ..instead rgb value?
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now