[EMAIL PROTECTED] wrote:
>
> How to know when zoom has been performed in the canvasView, can i catch
> an event ?
I think i checked in a change to the a2dZoomTool:
a2dGetCmdh()->Submit( new a2dCommand_Zoom(
a2dCommand_Zoom::Args().what( a2dCommand_Zoom::Zoom ).x1(x1).y1(y1).
x2(x1+rec->GetWidth()).
y2(y1+rec->GetHeight()).upp( false ) ) );
instead of:
//GetDrawer2D()->SetMappingWidthHeight(x1,y1,
fabs(rec->GetWidth()),fabs(rec->GetHeight()));
This makes it a command, and that generates an event. wxEVT_DO.
A problem is that i think zooming should not be part of the undo chain.
Undo should just undo changes to the document.
Klaas
--
Unclassified
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev