Page 1 of 1

getMouseX and getMouseY

Posted: Tue Jun 30, 2009 12:31 pm
by sacki
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

Re: getMouseX and getMouseY

Posted: Tue Jun 30, 2009 12:55 pm
by Loïc
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

Re: getMouseX and getMouseY

Posted: Tue Jun 30, 2009 1:12 pm
by sacki
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

Re: getMouseX and getMouseY

Posted: Tue Jun 30, 2009 1:15 pm
by Loïc
I suppose that the name of the control has been changed and that this event is never raised.

Kind regards,

Loic

Re: getMouseX and getMouseY

Posted: Tue Jun 30, 2009 2:05 pm
by sacki
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.

Re: getMouseX and getMouseY

Posted: Tue Jun 30, 2009 2:25 pm
by Loïc
Hi,

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

With best regards,

Loïc