| Article | 60000194 |
| Type | HowTo |
| Product | Engine |
| Date Added | 6/29/2007 12:00:00 AM |
| Fixed | (6/29/2007 12:00:00 AM) |
| Submitted by | Peter Chanios |
Summary
How to invert/disable MouseWheel functionality, how to disable Pan.
Solution
//For the wrapper we have to get the vdDocument object like below.
VectorDraw.Professional.vdObjects.vdDocument doc = vd.ActiveDocument.WrapperObject as VectorDraw.Professional.vdObjects.vdDocument;
doc.MouseWheelZoomScale = 1.0; //1.0 means disabled mouse wheel. 0.8(less than 1.0) or 1.2(more than 1.0) values can reverse the mouse wheel functionality.
In order to Disable Panning you have to use the JobStart event like below.
vd.JobStart += new AxVDrawLib5._DVdrawEvents_JobStartEventHandler(vd_JobStart);
void vd_JobStart(object sender, AxVDrawLib5._DVdrawEvents_JobStartEvent e)
{if (e.jobName == "BaseAction_ActionPan") e.cancel = 1;}
