Hi!
Set the mouse pointer for the object currently under mouse. For example, if your lengthy process is launched by command button, set it for command button. Then set _VFP.AutoYield=.F. that will prevent further refreshing of mouse icon when moving above otehr objects (for duration of VFP code running). When you have custom progress bars controls or windows, _VFP.AutoYield = .F. might cause them not refreshing properly, so think carefully if this approach is ok for you.
HTH.
>When the app goes into a long calculation process, I want the mouse cursor to be an hourglass. I want that to be true no matter where the mouse happens to be pointing. That doesn't seem like such a strange objective to me <g> - but I'm not finding any good solution.
>
>_screen.mousepointer doesn't affect the pointer when the mouse is over a form.
>
>I don't want to put a new form over the whole screen (or maximize an existing one) because I want the user to be able to see the screen and all opens forms.
>
>I don't want to use an API call because I don't want the solution to affect other Windows apps.
>
>I could create a transparent shape (with .mousepointer=11) to cover each of the visible forms (there may be several) but that doesn't affect the pointer when the mouse is over a title bar, min/max buttons, toolbar, main menu, etc.
>
>It seems like this shouldn't be so hard.
>
>I'm using VFP6, if that matters.
>
>Thanks for any suggestions.
>
>-Bob
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.