Loading...

getMouseX and getMouseY

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

getMouseX and getMouseY

Postby sacki » Tue Jun 30, 2009 12:31 pm

Hi there,

I just downloaded the actually version (22.06.09) and installed it, because I had problems with "Error rendering page" viewing some pdf-Files.
In my program I use the functions called above and with the newest version of the viewer ocx, both values are always "0". Returning to the prev. version, both functions are returning correct values.
Any ideas (Maybe a bug)?

Greetings sacki
sacki
 
Posts: 4
Joined: Tue Jun 30, 2009 12:23 pm

Re: getMouseX and getMouseY

Postby Loïc » Tue Jun 30, 2009 12:55 pm

Hi,

There is no problem.

Check you are calling these methods when the mouse is on top of the displayed image area.

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: getMouseX and getMouseY

Postby sacki » Tue Jun 30, 2009 1:12 pm

here is my code:

Private Sub pdfViewer_MouseDownControl(ByVal sender As Object, ByVal e As AxGdViewerPro4.__GdViewer_MouseDownControlEvent) Handles PDFViewer.MouseDownControl
txtFillX.Text = PDFViewer.GetMouseX
txtFillY.Text = PDFViewer.GetMouseY
....

the code works with the old version of the viewer, but not with the current one. Nothing changed, only the viewer OCX in %windir%\system32
sacki
 
Posts: 4
Joined: Tue Jun 30, 2009 12:23 pm

Re: getMouseX and getMouseY

Postby Loïc » Tue Jun 30, 2009 1:15 pm

I suppose that the name of the control has been changed and that this event is never raised.

Kind regards,

Loic
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: getMouseX and getMouseY

Postby sacki » Tue Jun 30, 2009 2:05 pm

sorry, but the event fires.
If I place a breakpoint I see that the function is called in both viewer versions, but only the older ocx returns values for getMouseX and -Y the new one allways 0.
sacki
 
Posts: 4
Joined: Tue Jun 30, 2009 12:23 pm

Re: getMouseX and getMouseY

Postby Loïc » Tue Jun 30, 2009 2:25 pm

Hi,

Please reproduce the problem in a tiny application and sent it to esupport (at) gdpicture (dot) com.

With 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


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest