Getting mouse/keyboard input while in a repeat/until loop
Posted on 2003-03-10
My application calls a Form which displays a graphic. The Graphic is in a repeat/until loop wherein the graphic content is updated as a function of time.
The form has a menu with "Exit" "Save" "Print" etc sub items.
While in the time update loop, the form does not accept keyboard or mouse input. I have the form KeyPreview set to true, but it will not respond to mouse or keyboard input.
If I remove the repeat/until loop, to display the graphic as of one fixed time, every thing works OK.
Is it possible to do a mouse/keyboard poll within the loop to get the menu items working? My earlier Dos protected mode version had no problems with this.
Any help much appreciated!