?
Solved

Getting mouse/keyboard input while in a repeat/until loop

Posted on 2003-03-10
3
Medium Priority
?
467 Views
Last Modified: 2010-04-04
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!



0
Comment
Question by:DXPete
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:ILE
ID: 8107404
The problem is when u put something in the loop in one of the component events there is no appropriate answer for other events
in fact your computer do the job inside one component events and when is finished its pass the controll to the event driver



u mey

1 Use theards
2 use timer component and break a loop in smaler peaces and start them in the component event and finish in more sequvences in the on timer event
0
 

Accepted Solution

by:
Klooge earned 500 total points
ID: 8108335
Try putting Application.ProcessMessages in the loop.
0
 

Author Comment

by:DXPete
ID: 8110730
This problem had caused me a lot of grief! Many thanks to the respondents for their help.

 
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month12 days, 20 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question