Project

General

Profile

Bug #11059

Button CHOOSE Event Not Suppressed by Frame MOUSE-SELECT-UP ANYWHERE

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 CHOOSE OF btn DO:
    MESSAGE "Button pressed".
END.

WAIT-FOR CLOSE OF CURRENT-WINDOW.

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

  • MOUSE-SELECT-UP on the frame with the ANYWHERE modifier
  • CHOOSE on the button

Steps to Reproduce

Click the button with the left mouse button.

Expected Behavior (OE)

Only the message "mouse up ANYWHERE in frame" is printed.

The CHOOSE event for the button is suppressed by the MOUSE-SELECT-UP trigger on the frame with the ANYWHERE modifier.

Actual Behavior (FWD)

Both messages are printed:

  • "Button pressed"
  • "mouse up ANYWHERE in frame"

The CHOOSE event for the button is not suppressed.

Also available in: Atom PDF