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.
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.