EnableMouseScaling replacement?

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

EnableMouseScaling replacement?

Postby DDTech » Tue Oct 27, 2009 10:37 am

Hi,

Moving from VPE 3.1 Enh. to VPE 5 Prof. the preview does not scale (zoom in / zoom out) anymore on mouse clicks or right clicks and the property "EnableMouseScaling" is gone.

Prof. allows for clickable objects and so I guess this behaviour interfered with that.

Any Idea on how to mimic that old behavior?
Something with click() and sendKey ?

TIA

Frank
DDTech
 
Posts: 37
Joined: Mon Oct 26, 2009 11:45 am

Postby IDEAL Software Support » Tue Oct 27, 2009 11:18 am

There is no way to exactly mimic the old behaviour.

But you can call

ScaleMode = VSCALE_MODE_ZOOM_TOOL

to pre-activate the Zoom-Tool.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby DDTech » Tue Oct 27, 2009 11:59 am

IDEAL Software Support wrote:...ScaleMode = VSCALE_MODE_ZOOM_TOOL....


Ah, lovely. Then I can stop searching. :-)

I played with that but did not realize it switches as soon as I change something like .ScalePercent.

So in order to persistantly keep the behavor, all I need to do is something like:

oVPE.ScalePercent = <Value>
oVpe.ScaleMode = VSCALE_MODE_ZOOM_TOOL

or add an additional button to my toolbar.

Thx


Frank Dietrich
DDTech
 
Posts: 37
Joined: Mon Oct 26, 2009 11:45 am


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 75 guests