I was meaning for the browser eep to start the timer, then in the timer eep set the focus to your variable control, and then kill the timer. This is an attempt at not using pause and you can set the timer to a finer granularity than 1 second.
----- Original Message ----- From: "Michael J. Sinclair" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Thursday, September 20, 2012 9:15 AM Subject: [RBASE-L] - Re: How to use the new Web Browser EEP Mike, I can see why loading an actual web page running moving graphics might steal the focus, but am I trying to load a static PDF file for display purposes only. I have not tried it with other form types...perhaps the problem is related to the file type. If I understand your suggestion, I should try to fabricate a Pause for <1 command by having the pause command within a timer form that is called by the parent form and then kill the timer form as quickly as possible. Do you think that asking for a Pause for Less than 1 command would be a reasonable enhancement request? Mike ________________________________ From: Mike Byerley <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Thursday, September 20, 2012 7:49 AM Subject: [RBASE-L] - Re: How to use the new Web Browser EEP Mike, To add to what Razzak said, onDocumentComplete is likely the one you want to use, but it seems like pages that have activity after the document is loaded, like an timer event that loads graphics, continues to suck the focus back to the browser container, which still stymies your issue. Some pages work perfectly, others not so much. If you don't want a pause to click on, try to use a form timer that you start at the beginning of your browser eep and keep the timer event short, killing the timer at the end of the timer event, then set focus to the other control. I haven't tried that myself, but it won't take long for you to hammer and glue it together, ----- Original Message ----- From: "Michael J. Sinclair" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Wednesday, September 19, 2012 10:39 PM Subject: [RBASE-L] - How to use the new Web Browser EEP : Hi All, : The Web Browser control now has 3 available EEPs (thank you dream team!). The 3rd one, on double click seems easy to understand. But I can't figure out the difference between the other 2, On Document Complete vs On Navigation Complete. : : In my app, I am trying to set the focus on to a variable edit field after displaying a PDF file using this command... : : PROPERTY id_browser GOURL .vdisplayname (where vdisplayname is the complete path of the file I want to display) : : : If I use a PAUSE for 1 command right after the above, my set focus commands work fine, but there is an annoying 1 second delay. : : I tried putting this code into both EEPS... : : PROPERTY id_vfolder set_focus 'TRUE' : PROPERTY id_vfolder lastchar 'true' : RETURN : : But without the Pause for 1, I can't get the focus to move to the Variable Edit field. : : Which EEP should I use? What is the difference between Document Complete EEP vs the Navigation Complete EEP? : : TIA, : Mike

