Project

General

Profile

Bug #11058

Frame Mouse Events Triggered Outside Frame Area

Added by Vladimir Tsichevski 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
16324
version_resolved:
reviewer:
production:
No
env_name:
topics:

History

#1 Updated by Vladimir Tsichevski 7 months ago

Run the following 4GL example:

DEFINE BUTTON btn.
DEFINE FRAME fr.
ENABLE btn WITH FRAME fr.

ON MOUSE-SELECT-UP OF FRAME fr ANYWHERE DO:
    MESSAGE "mouse up ANYWHERE in frame".
END.

ON MOUSE-SELECT-DOWN OF FRAME fr DO:
    MESSAGE "mouse down in frame".
END.

WAIT-FOR CLOSE OF CURRENT-WINDOW.

This creates a frame containing an enabled button. Two mouse event triggers are defined:

  • MOUSE-SELECT-UP with the ANYWHERE modifier
  • MOUSE-SELECT-DOWN without modifier

When the window opens, the frame area is limited to the button region; most of the window area lies outside the frame.

Click the left mouse button in the window area outside the frame (i.e., outside the button).

Expected Behavior (OE)

No message is displayed (events do not trigger outside the frame).

Actual Behavior (FWD)

The message mouse up ANYWHERE in frame is printed, even though the click occurred outside the frame boundaries.

Also available in: Atom PDF