Mike Lewis
Programmer
This is a bit of a long shot, but it's just possible there is a solution to this problem.
I want to be able to override the hourglass mouse pointer during a processor-intensive operation.
As you know, when VFP is running a piece of code that takes more than a second or so, it displays an hourglass. While that code is running, you can't change the MouseIcon or MousePointer properties of any controls. (Or, rather, you can change them, but the hourglass returns almost instantly.)
Normally, that's how it should be. However, suppose the code is running from a form, and the form has a Cancel button. You want to let the user click the button to interrupt the code. That's OK. You can do that with DOEVENTS.
My question is: Is there any way of fixing it so that, when the mouse pointer is over the Cancel button, I can change the pointer to a normal arrow -- to indicate to the user that they are able to click the button? As I said before, changing the MouseIcon or MousePointer is no good, because VFP simply changes it back to the hourglass.
Any suggestions gratefully received?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk
I want to be able to override the hourglass mouse pointer during a processor-intensive operation.
As you know, when VFP is running a piece of code that takes more than a second or so, it displays an hourglass. While that code is running, you can't change the MouseIcon or MousePointer properties of any controls. (Or, rather, you can change them, but the hourglass returns almost instantly.)
Normally, that's how it should be. However, suppose the code is running from a form, and the form has a Cancel button. You want to let the user click the button to interrupt the code. That's OK. You can do that with DOEVENTS.
My question is: Is there any way of fixing it so that, when the mouse pointer is over the Cancel button, I can change the pointer to a normal arrow -- to indicate to the user that they are able to click the button? As I said before, changing the MouseIcon or MousePointer is no good, because VFP simply changes it back to the hourglass.
Any suggestions gratefully received?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk