Popup menu - focus [message #677689] |
Mon, 07 October 2019 05:45 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.gravatar.com/avatar/a1a9d9081f428175de54fa574b864b3e?s=64&d=mm&r=g) |
jury68000
Messages: 33 Registered: October 2019
|
Member |
|
|
I have item1, item2 and popupmenu set up. When I click item1 with left mouse button, the focus goes to item1. Then I click item2 with right mouse button and the popup menu shows up, but the focus doesn't change to item2, so when I do :system.mouse_item, :system.current_item, :system.cursor_item ... or anything I tried so far, I always get the properties of item1. How can I get properties of item2 when clicking right mouse button over item2? ( or how to change focus to item2 with right mouse button? )
Forms are 10g
|
|
|
Re: Popup menu - focus [message #677700 is a reply to message #677689] |
Tue, 08 October 2019 02:44 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/194573.png) |
Littlefoot_fan
Messages: 18 Registered: June 2019 Location: Uruguay
|
Junior Member |
|
|
You could create the PRE-POPUP-MENU trigger on ITEM2 and then do:
-- This variable should contain the name of your ITEM2
message(':SYSTEM.MOUSE_ITEM = ' || :SYSTEM.MOUSE_ITEM);pause;
I think that in this trigger you can get your properties of ITEM2.
[Updated on: Tue, 08 October 2019 03:33] Report message to a moderator
|
|
|
Re: Popup menu - focus [message #677712 is a reply to message #677700] |
Tue, 08 October 2019 10:17 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](http://www.gravatar.com/avatar/a1a9d9081f428175de54fa574b864b3e?s=64&d=mm&r=g) |
jury68000
Messages: 33 Registered: October 2019
|
Member |
|
|
Thanks, but there is still the focused item ( item1 ) under :system.mouse_item. But I think I found the solution ( well, not me, I got this from a workmate ). I need to execute synchronize under PRE-POPUP-MENU and then under :system.mouse_item should always be the proper item which is under the mouse. I do not fully understand those trigger dependencies under Forms yet.
[Updated on: Tue, 08 October 2019 10:29] Report message to a moderator
|
|
|