Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002337 [JEDI VCL] 00 JVCL Components major always 2004-11-24 08:25 2004-11-30 10:33
Reporter anonymous View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved   Product Version 3.00 BETA 2
Summary 0002337: TJvMouseGestureHook blocks application
Description Mouse Gesture demo. Add popup menu and insert some menu items to it. Then assign that popupmenu to TMemo.

(Right mouse button must be selected as default for drawing such gesture)
Run application and selecte ...Hook as default. Then draw mose gesture over Memo. After you release mouse button popup menu is displayed an then application freeezes for > 20 seconds.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
anonymous (viewer)
2004-11-24 08:28

"Run application and selecte ...Hook as default" should be
Run application and select "All controls via AppEvents" as detection method.
2004-11-25 09:44

Obviously, using the right mouse button as the mouse gesture activator and at the same time assigning a popup to the memo, is asking for trouble.

I don't see that we can do anything about it. In short: don't combine the two.

Unless you can come up with a viable approach to combine the two, I am afraid we will have to close this issue with a "won't fix" status.
anonymous (viewer)
2004-11-25 09:56

Well not excactly.

If you see how mouse gestures are implemented in e.g Firefox you'll se that mouse click and drag messages are "eaten" if gesture is executed. e.g no menu is displayed.
2004-11-28 07:13

The problem seems to be that when the popup is displayed, the message pump for the menu is never started, but I haven't been able to determine why.
2004-11-28 09:40

Try this:

function JvMouseGestureHook(Code: Integer; wParam: Word; lParam: Longword): Longword; stdcall;
  locY: Integer;
  locX: Integer;
  if (Code < 0) or not (JvMouseGestureHookActive) then
    Result := CallNextHookEx(JvCurrentHook, Code, wParam, lParam);
  Result := Code;

  with PMouseHookStruct(lParam)^ do
    locX := pt.X;
    locY := pt.Y;

  if wParam = WM_MOUSEMOVE then
    JvMouseGestureInterpreter.TrailMouseGesture(locX, locY);
  if wParam = JvMouseButtonDown then
    JvMouseGestureInterpreter.StartMouseGesture(locX, locY)
  if wParam = JvMouseButtonUp then
  Result := CallNextHookEx(JvCurrentHook, Code, wParam, lParam); // NEW!
obones (administrator)
2004-11-30 04:43

Please try with the latest zip files and tell us if the problem is fixed. These files are available here: [^] [^]

If we don't hear from you in the next 7 days, we will consider this issue fixed.
anonymous (viewer)
2004-11-30 07:52


Result := CallNextHookEx(JvCurrentHook, Code, wParam, lParam); // NEW!
solved the problem.

Thanks for support guys.
2004-11-30 10:33

Glad to hear that since I was out of ideas if that one hadn't worked :)

Updated in CVS

- Issue History
Date Modified Username Field Change
2004-11-24 08:25 anonymous New Issue
2004-11-24 08:28 anonymous Note Added: 0005696
2004-11-25 09:44 user72 Note Added: 0005706
2004-11-25 09:44 user72 Status new => feedback
2004-11-25 09:56 anonymous Note Added: 0005711
2004-11-28 05:15 user72 Note Added: 0005738
2004-11-28 07:10 user72 Note Deleted: 0005738
2004-11-28 07:13 user72 Note Added: 0005741
2004-11-28 09:40 user72 Note Added: 0005743
2004-11-28 09:41 user72 Issue Monitored: user72
2004-11-30 04:43 obones Note Added: 0005781
2004-11-30 07:52 anonymous Note Added: 0005784
2004-11-30 10:33 user72 Status feedback => resolved
2004-11-30 10:33 user72 Resolution open => fixed
2004-11-30 10:33 user72 Assigned To => user72
2004-11-30 10:33 user72 Note Added: 0005790
2004-11-30 10:33 user72 Assigned To user72 =>

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker