Home » Developer & Programmer » Forms » Popup menu - focus
Popup menu - focus [message #677689] Mon, 07 October 2019 05:45 Go to next message
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 messageGo to next message
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
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

Previous Topic: image in database and retrieve
Next Topic: Read data from serial port
Goto Forum:
  


Current Time: Thu Mar 28 13:00:01 CDT 2024