Loading...

Lockcontrol and zoom

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Lockcontrol and zoom

Postby Rocky » Thu Jun 04, 2009 10:37 pm

A small bug which forces some unnecessary flashing...

viewer.lockcontrol=true
viewer.displayfile("xyz.png")
viewer.SetZoom100 'viewer.SetZoomWidthControl
'viewer.redraw 'does not change anything.
viewer.lockcontrol=false

'at this point, the image is not updated might the new zoom !
viewer.redraw 'should not need to add this again, lockcontrol=false should do it ?!
'now it is updated....
Rocky
 
Posts: 27
Joined: Mon Jun 30, 2008 10:32 pm

Re: Lockcontrol and zoom

Postby Loïc » Fri Jun 05, 2009 1:25 pm

Hi Rocky,

Interesting remark !

However, for me the goal of the LockScreen property is to avoid (or not) all refreshing/drawing operations occurring into the viewer.
When you turn this property to False you should not wait for an automatic refresh (this is not the goal of this feature), you have to call the redraw method yourself.

I don't see what you means by "flashing", running your code I haven't this behavior.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Lockcontrol and zoom

Postby Rocky » Fri Jun 05, 2009 4:27 pm

Ok, thank you for the explananation about lockcontrol.

Forget about the flashing... it's OK.
Rocky
 
Posts: 27
Joined: Mon Jun 30, 2008 10:32 pm


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: Google [Bot] and 1 guest