Dynamically changing the mouse pointer in a grid.  
Author Message
Aleniko29139





PostPosted: Visual FoxPro General, Dynamically changing the mouse pointer in a grid. Top

Hi all;

I have a class which I drop into a grid. It's a zoomable invoice#. I would like to change the MousePointer dynamically depending on if the invoice# is empty or not.

I've used this:

if empty(this.value)
this.parent.mousepointer = 0
else
this.parent.mousepointer = 15
endif

So I'm changing the mousepointer property for the column, but it is not dynamic.

Any easy ways to achieve this

Thx.


Visual FoxPro2  
 
 
David Frankenbach





PostPosted: Visual FoxPro General, Dynamically changing the mouse pointer in a grid. Top

Aleniko,

There are no DynamicMouse properties. Try using the Column.DynamicCurrentControl, have one textbox set up with with MousePointer=0 and the other with MousePointer=15 and switch between the two controls based on the value. Set the Column.Sparse = .F.



 
 
Aleniko





PostPosted: Visual FoxPro General, Dynamically changing the mouse pointer in a grid. Top

Thx.
 
 
Tamar E. Granor





PostPosted: Visual FoxPro General, Dynamically changing the mouse pointer in a grid. Top

Would putting the code in the MouseEnter and MouseLeave events give you what you want

Tamar