Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional changing of Mouse Pointer on a Grid
Message
From
26/09/2005 13:04:41
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01046136
Message ID:
01053122
Views:
9
In my testing both of Fabio's code examples worked fine. VFP9, Windows XP Pro SP2
I would check to make sure the icon file you pointed it to really is an .ico file. When I tested it with an actual .ico file, it works great, but when I tested it with a .bmp or .gif file it didn't change the icon.
PROCEDURE Grid1.customMousePointer(nWhere,nRelRow,nRelCol)
   * change the pointer
    this.MouseIcon = "C:\icons\icons\apple.ico" && works
*    this.MouseIcon = "C:\icons\icons\apple.gif" && does not work
   RETURN 99
ENDDEFINE
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform