Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, September 12, 2007 5:37:52 AM(UTC)

sarghir  
sarghir

Groups: Registered
Posts: 9


I'm using the C++ ImageViewer v. 15.0.0.3 (5/2 patch).
I enable ActionCallBacks and I succesfully receive mouse events but if I set a default action associated with a mouse event, I don't receive the callback call anymore. See below code:



EnableActionCallBack(TRUE);
SetAction(CONTAINER_ACTION_WINDOWLEVEL, CONTAINER_MOUSE_BUTTON_LEFT, 0);

If I don't set the action for left mouse button, I receive the callback event.
Is this by design and if true is there any other way to intercept events when a default action is set?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, September 16, 2007 2:51:58 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

The callback only handles user-defined action events. It doesn't work with built-in (default) actions.

If you need to associate the mouse with a built-in action AND get mouse events at the same time, you might be able to do that by sub-classing the container viewer's window. To obtain the window handle, use the LImageViewer::GetWindowHandle() function. For more information about the subclassing, please refer to Microsoft Windows API documentation.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.125 seconds.