|
Home > Archive > Programming with dBASE > October 2005 > Idle Time for Timers
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Idle Time for Timers
|
|
|
| I had thought that the timer class would see a beginedit() as not being idle, but it appears the timer continues to count during a beginedit. The OLH indicates examples of times when dbase is not idle, including waiting for input in command window or navi
gator.
If beginedit mode is interpreted as being IDLE, it is hard to know what programmatic operations would be considered NOT IDLE. Anyone know of examples of programmatic operations that would be considered not idle time?
Thanks for any ideas on this,
Rick
| |
| Paul Van House 2005-10-11, 7:27 am |
| In article <s6jp3ybzFHA.1304@news-server>, Sportman7@netzero.net says...
> I had thought that the timer class would see a beginedit() as not being idle, but it appears the timer continues to count during a beginedit. The OLH indicates examples of times when dbase is not idle, including waiting for input in command window or na
vigator.
>
> If beginedit mode is interpreted as being IDLE, it is hard to know what programmatic operations would be considered NOT IDLE. Anyone know of examples of programmatic operations that would be considered not idle time?
>
> Thanks for any ideas on this,
> Rick
>
>
>
As I recall, the Idle time is time the application is not using the CPU
to do something. So any time your form is sitting there it is idle.
When your application processes a key stroke, mouse click, and other
"events" that is non-idle time.
When the BeginEdit() is processed, it is NOT idle time. But once the
record is locked and the row buffer opened for editing you are idle
again.
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
| |
| Ken Mayer [dBVIPS] 2005-10-11, 7:27 am |
| Rick wrote:
> I had thought that the timer class would see a beginedit() as not being idle, but it appears the timer continues to count during a beginedit. The OLH indicates examples of times when dbase is not idle, including waiting for input in command window or na
vigator.
>
> If beginedit mode is interpreted as being IDLE, it is hard to know what programmatic operations would be considered NOT IDLE. Anyone know of examples of programmatic operations that would be considered not idle time?
>
> Thanks for any ideas on this,
In addition to Paul's comments, if you want the timer to go idle while
the user is editing, then you need to set the enabled property to false,
and when your user saves/abandons set the timer's enabled property back
to true.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
|
| Paul,
Don't think that is correct, since I found that the timer continues and interrupts me in an edit after entry starts (which should be after a record lock). In any case, I used the enable/disable suggested by Ken to stop the timer when in edit mode. But t
hanks,
Rick
Paul Van House Wrote:
> In article <s6jp3ybzFHA.1304@news-server>, Sportman7@netzero.net says...
navigator.[color=darkred]
> As I recall, the Idle time is time the application is not using the CPU
> to do something. So any time your form is sitting there it is idle.
> When your application processes a key stroke, mouse click, and other
> "events" that is non-idle time.
>
> When the BeginEdit() is processed, it is NOT idle time. But once the
> record is locked and the row buffer opened for editing you are idle
> again.
>
>
> --
> Paul Van House
> remove ".removeme" for e-mail replies
> Radio/TV Software and Baseball Stat Software:
> http://www.binxsoftware.com
> Family Home Page: http://vanhouse.binxsoftware.com
> Church Home Page: http://www.ashfordumc.org
| |
|
| Ken,
Thanks. I set it up in edit and append modes to stop the timer.
Rick
Ken Mayer [dBVIPS] Wrote:
> Rick wrote:
navigator.[color=darkred]
>
> In addition to Paul's comments, if you want the timer to go idle while
> the user is editing, then you need to set the enabled property to false,
> and when your user saves/abandons set the timer's enabled property back
> to true.
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
|
|
|
|
|