Project

General

Profile

Feature #3283

add 4GL extension to obtain the mouse pointer location

Added by Greg Shah almost 7 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/27/2017
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD

History

#1 Updated by Greg Shah almost 7 years ago

Per #3257-59, this task is to create a 4GL syntax extension (unique to FWD) to return the current mouse position relative to the "client window" (the main drawing area of a frame window).

#2 Updated by Greg Shah over 6 years ago

What branch is this code in?

What is the status?

#3 Updated by Hynek Cihlar over 6 years ago

The issue fully resolved in task branch 3284a revision 11172. Added 4GL-extension method GET-MOUSE-POSITION. Please review.

Do we have any place (a wiki page) where we document the 4GL language extensions?

#4 Updated by Greg Shah over 6 years ago

Do we have any place (a wiki page) where we document the 4GL language extensions?

There are entries in this location:

https://proj.goldencode.com/projects/p2j/wiki/4GL_Enhancements#4GL-Extensions-Only-Available-in-FWD

Each one is a new wiki page.

#5 Updated by Hynek Cihlar over 6 years ago

Code changes for the GET-MOUSE-POSITION were delivered in task branch 3284b and merged to trunk as revision 11172.

#6 Updated by Hynek Cihlar over 6 years ago

I documented the feature in Mouse Position Location.

Also I realized that GET-MOUSE-POSITION should return mouse coords relative to the window client area. This wasn't the case and so I checked in the change in 3285b. The change is trivial and doesn't require regression testing. Also I dared to change the behavior in ChUI not to throw an exception (and cause an abend of the client) but log a warning instead and return [0, 0]. Please review.

#7 Updated by Greg Shah over 6 years ago

Please add the 4GL example code that would be replaced by this. Also, use some text like the final text in the screen refresh doc (I made some edits to it).

#8 Updated by Hynek Cihlar about 3 years ago

GET-MOUSE-POSITION returns coordinates relative to the screen when called on FIELD-GROUP widget. It must return coordinates relative to the field group location.

#9 Updated by Greg Shah about 3 years ago

How much effort is there to fix this?

Also available in: Atom PDF