Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MousePointer Property - Making the new pointer visible

Status
Not open for further replies.

EbyWan

Programmer
Oct 19, 2000
1
US
I have a custom menu bar, in an application, and launch programs using a defined procedure for the menu item. In the menu procedure I set the MousePointer property to 11, hourglass, refresh the form and then start a program. When the program finishes I set the pointer to 0, default.

My problem is that the hourglass does not appear until the mouse is moved. When the mouse is moved the hourglass will display until the program closes and then the pointer properly returns to the default arrow. I would like the hourglass to appear as soon as the property is changed in the code. I've tried to change the pointer and then use the mouse at command to simulate a move of the mouse by the user, but that too fails to cause the pointer to display.
 
Use DOEVENTS command. It forces mouse pointer to change after changes in control properties.


Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top