LEADTOOLS Support
General
General Questions
ImageViewer: ActionCallBack not called if there are actions associated with mouse buttons
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, September 12, 2007 5:37:52 AM(UTC)
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?
#2
Posted
:
Sunday, September 16, 2007 2:51:58 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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
LEADTOOLS Support
General
General Questions
ImageViewer: ActionCallBack not called if there are actions associated with mouse buttons
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.