Re: VB6 Application Overwhelmed by Rapid User Interaction
- From: Dean Earley <dean.earley@xxxxxxxxxxx>
- Date: Mon, 23 Jun 2008 19:09:52 +0100
Larry Serflaten wrote:
"Joseph Geretz" <jgeretz@xxxxxxxxxx> wrote
If the user clicks reasonably, or even moderately quickly from entry to
entry the application behaves fine. However if the user will 'attack' the
interface by scrolling rapidly up and down the grid from entry to entry, up,
up, up, down, down, down, up, up, up, down, down, down etc. in rapid
succession, the application will throw an unanticipated application failure;
I've tried a couple of approaches to try to clear the keyboard buffer prior
to re-enabling the form, but noeither of these seem to work.
I appreciate any advice which you can provide.
In another post you state:
While that flag is true, any keystrokes received by the grid are
simply discarded.
Does that mean that the user is held back from advancing too fast?
I was just going to mention another approach that would allow the
user to move the focus to the row they want, at the speed they
want.
If, instead of calling the DB and web page on a row change, you
store the new row index in a queue, you could use a timer to read
the queue and display the data. That way the user is simply filling
a queue which can happen rapidly, and not overwhelm the system.
The trick to keeping up with the user is, in the timer event, where
you are going to get and show the data, you check the size of the
queue. If the queue has more than one item, remove all but the last
one and use that.
The timer could be set at a rate that will not overwhelm the system,
so that no matter how fast the user types, the data is called up at
a moderate pace....
A similar approach is to disable and reenable a timer when a row is selected, then in the timer event, just get the latest row.
This means it wont start getting anything for 20ms (for example) after stopping scrolling.
I use this concept in a video progress slider very successfully.
--
Dean Earley (dean.earley@xxxxxxxxxxx)
i-Catcher Development Team
iCode Systems
.
- References:
- VB6 Application Overwhelmed by Rapid User Interaction
- From: Joseph Geretz
- Re: VB6 Application Overwhelmed by Rapid User Interaction
- From: Larry Serflaten
- VB6 Application Overwhelmed by Rapid User Interaction
- Prev by Date: Re: VB6 Application Overwhelmed by Rapid User Interaction
- Next by Date: Re: TLB or not TLB
- Previous by thread: Re: VB6 Application Overwhelmed by Rapid User Interaction
- Next by thread: Re: VB6 Application Overwhelmed by Rapid User Interaction
- Index(es):
Relevant Pages
|
Loading