Antwise community forums
[VFP] Mouse cursor dissapears - Printable Version

+- Antwise community forums (https://forums.antwise.com)
+-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11)
+--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12)
+--- Thread: [VFP] Mouse cursor dissapears (/showthread.php?tid=243)



[VFP] Mouse cursor dissapears - fire555 - 2026-03-17

Hi Wil,

Got a weird issue, hoping there is a nice easy fix.

Consider I have an AntView object on the screen and the mouse is hovering over it. I then start a new foxpro form without moving the mouse. Also, without moving the mouse, I release that form. The mouse is still over the AntView object, but now the mouse cursor has disappeared.

I can move the mouse around and the AntView control responds to the movements, but there is no cursor. The only way to get the cursor back is to move off the AntView control. If I move immediately back onto it, the mouse cursor is displayed correctly.

Do you have any ideas about this one? I can create an example if you need it.


Thanks!


RE: [VFP] Mouse cursor dissapears - wila - 2026-03-17

That's a curious issue.

An example would be appreciated thanks.
--
Wil


RE: [VFP] Mouse cursor dissapears - wila - 2026-03-24

We're not sure why this happens and which layer in the stack is to blame.
AntView isn't setting or hiding a cursor anywhere.

We were able to reproduce the issue and have applied the following code in VFP as a workaround.

First at the top of the application, this code:
Code:
DECLARE INTEGER ShowCursor IN user32 INTEGER bShow
This declares the Windows API call ShowCursor for your application so that you can call it later on.

Then on closing the second form that hosts the AntView control where the cursor disappears add this:
Code:
thisform.Release()
ShowCursor(1)

This prevented the cursor from disappearing.
--
Wil