getMouseX and getMouseY

Discussions about document viewing.
Post Reply
sacki
Posts: 4
Joined: Tue Jun 30, 2009 12:23 pm

getMouseX and getMouseY

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: getMouseX and getMouseY

Post by 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

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

Re: getMouseX and getMouseY

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: getMouseX and getMouseY

Post by 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

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

Re: getMouseX and getMouseY

Post by 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.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: getMouseX and getMouseY

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests