Sleep has nothing to do with GUI.

AFA your existing code, I went round and round with this issue some time 
ago.  I have a little test bed I set up and looking at it, I can't see that 
I came to a satisfactory resolution.  I think it has to do with the exact 
timing of the OnNavigationComplete event.  You can put a Set_Focus command 
in there to direct focus to another edit control and it doesn't seem like it 
fires (at least the set focus part), but if you put a pause in either the 
OnNavigationComplete or in the OnEnter in the edit control, focus will 
remain on the edit control.

However, If you set the edit control properties to AutoSelect, focus does go 
to it correctly, but if you add the property LastChar to the edit control, 
it loses focus.  Perplexing, but Sleep has nothing to do with it and a While 
Loop wouldn't do anything for you.

I might mess with it later for a bit, but I think I beat it up pretty good 
before.





----- Original Message ----- 
From: "Michael J. Sinclair" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, September 10, 2012 11:45 AM
Subject: [RBASE-L] - RE: PAUSE for less than one second.


Mike B,
Can your Sleep API pull the focus away from the Web Browser object?
I am using the Pause command because I want to change the focus from the Web 
Browser (foucus placed on the WEB Browser with a GOURL), to a variable edit 
object. I tried using the on Navigation Complete EEP, but the focus refuses 
to change for me unless I follow the GOURL with a Pause command.
Mike


________________________________
From: Mike Byerley <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Monday, September 10, 2012 11:25 AM
Subject: [RBASE-L] - RE: PAUSE for less than one second.

These all work OK, but as Larry pointed out, when you use a while loop, it
consumes the capacity of the processor, so NOTHING else that needs a slice
of time within the span of time the while loop runs will function properly.
The Sleep API consumes no processor cycles. That is the advantage and it
doesn't require any mucking around with your time format mid stream.




----- Original Message ----- 
From: "Stephen Markson" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, September 10, 2012 10:20 AM
Subject: [RBASE-L] - RE: PAUSE for less than one second.


We use option 1 in codelock to create a binary command file called DELAY
from the following ASCII file:

-- Usage: RUN Delay USING <time in seconds to nearest millisecond>
-- Example: "RUN Delay USING 3.5" will pause for 3.5 seconds
SET V x REAL=.%1
SET V TimeFormat=(CVAL('TIME'))
SET TIME FORMAT HH:MM:SS.SSS
SET V Start TIME=.#TIME,Delay INTEGER=(NINT(.x*1000))
WHILE #TIME<(.Start+.Delay) THEN
ENDWHILE
SET TIME FORMAT &TimeFormat
CLEAR V Start,Delay,TimeFormat,x
RETURN

Regards,

Stephen Markson
The Pharmacy Examining Board of Canada
416.979.2431 x251

From: [email protected] [mailto:[email protected]] On Behalf Of Lawrence
Lustig
Sent: Wednesday, September 05, 2012 11:33 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - PAUSE for less than one second.

I want to pause each time through a loop, but only for 250 milliseconds (a
quarter second).

PAUSE FOR works fine for whole numbers of seconds. Is there any way to
pause for something shorter than a second?
--
Larry 


Reply via email to