Prod.: Engine, ver.: 6, ID: 60000194, HowTo : How to invert/disable MouseWheel functionality, how to disable Pan.

HowTo : How to invert/disable MouseWheel functionality, how to disable Pan.

Article60000194
TypeHowTo
ProductEngine
Version6
Date Added6/29/2007
Submitted byPeter Chanios
Keywords

Subject

How to invert/disable MouseWheel functionality, how to disable Pan.

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;}