Loading...

Pan and move

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Pan and move

Postby gcapoccia » Thu Jun 19, 2008 3:47 pm

I'll to explain whats I'm trying to do:
I've two viewer one on top of the other one, the topmost in transparent. I'll display a picture from file in the lower one and I'll draw a line in the topmost. Up to here everything works. Then, I'll zoom the lower one and getting the zoom factor resize also the topmost, everything still work. Now became the problem: when I try to move (pan) with the mouse using hand cursor the lower one move the upper one no!!! can anyone tell me if exist an event to detect the movement/pan and how reflect this position change to the upper viewer???

I'm very sorry for the explanation but for me is not very easy to explain in english, in italian too....

thank to everybody, gcapoccia
gcapoccia
 
Posts: 6
Joined: Mon Jan 28, 2008 5:54 pm

Re: Pan and move

Postby Loïc » Thu Jun 19, 2008 3:49 pm

Hi,

Just catch the Display Event. I think it is what you need.

Best 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: Pan and move

Postby gcapoccia » Thu Jun 19, 2008 4:10 pm

great, works just fine. once more, now using the .GetImageLeft and .GetImageTop properties I can understand how I'm moving the lower picture. How set the upper image in the same coords (exist the property .SetImageLeft) ?

thanks again, gcapoccia
gcapoccia
 
Posts: 6
Joined: Mon Jan 28, 2008 5:54 pm

Re: Pan and move

Postby gcapoccia » Thu Jun 19, 2008 4:14 pm

Loïc wrote:Hi,

Just catch the Display Event. I think it is what you need.

Best regards,

Loïc


great, works just fine. once more, now using the .GetImageLeft and .GetImageTop properties I can understand how I'm moving the lower picture. How set the upper image in the same coords (exist the property .SetImageLeft) ?

thanks again, gcapoccia
gcapoccia
 
Posts: 6
Joined: Mon Jan 28, 2008 5:54 pm

Re: Pan and move

Postby Loïc » Fri Jun 20, 2008 6:47 pm

Hi.

Like that:

Code: Select all
nWidthDisplay =  GdViewer1.ImageWidth * GdViewer1.Zoom
nHeightDisplay = GdViewer1.ImageHeight * GdViewer1.Zoom


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


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest