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

Article 60000194
Type HowTo
Product Engine
Version 6
Date Added 6/29/2007
Fixed (6/29/2007)
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;}

 

Send comments on this topic.