Microsoft KB Archive/157727

= BUG: Animated Mouse Cursor Does Not Work in .exe File =

Article ID: 157727

Article Last Modified on 8/24/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q157727



SYMPTOMS
An animated mouse cursor (pointer) used in a form in an application works only in the development environment. The animated mouse cursor (pointer) shows up as regular mouse cursor (pointer) instead at run time (in an .exe file).

NOTE: In Visual FoxPro 5.0a, using a .cur file also produces the same behavior. Visual FoxPro 5.0a Service Pack 2 allows a .cur file to be used properly.



STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.



WORKAROUND
An animated mouse cursor will not show up properly in an .exe, however, if you assign an .ico or .cur file to the MouseIcon property, the animated mouse cursor will work.



Steps to Reproduce Behavior
 Create a new form as mPointer.scx. Set the MouseIcon property of the form to some animated cursor (for example, Cursor.ani). Set the MousePointer property of the form to "99-Custom."  Add a command button to the form, and in the click method of the form, put in the following code: RELEASE Thisform CLEAR EVENT  Run the form.

Notice the animated mouse pointer that appears when you run the form. Now, close the form and create a project named mProject.pjx</li>  Add a program to the project as Main.prg, and put the following code in Main.prg DO FORM mPointer READ EVENT </li> Add the form to the project.</li> Build the project into an .exe file.</li> Exit Visual FoxPro and run the .exe file.

The animated mouse pointer changes to a regular mouse pointer.</li></ol>

Additional query words: kbdse VFoxWin

Keywords: KB157727

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.