At 10:08 AM 3/13/2010, Frank Taylor wrote:
Razzak,
Got the link and downloaded the example. I think my issue has to do with
the fact that I am bringing up a pdf in the web browser component. If I
take your form, Webbrowserproperty and in the Form Properties - on after
start eep and add the command Property vcurl SET_FOCUS 'TRUE' after the
propoerty vcurl gourl .vurl line, I get the desired results of having the
cursor in the variable field for the web address bar. BUT now if I change
the line in the on after start eep to Set Var vurl = 'C:\temp\Test.pdf'
and leave the set_focus command in, the PDF comes up, but I am no longer
focused on the form. I have to click on the variable edit field to get
back. I understand that by bringing up a PDF I am sort of launching Adobe
inside that component so maybe that is why focus is lost, but it would be
nice to be able to restore focus and goto another field inside a form
after bringing up the pdf.
Frank,
Did you know that you have just answered your own question?
The Form Web Browser is an internal R:BASE control that behaves exactly
the way you would expect. However, when an external program is LAUNCHed,
such as Adobe Acrobat Reader, you are physically switching to an external
program, thus no option to switch back until the launched program is
closed.
Any further ideas or maybe I missed something else in the example.
Keeping your specific ideas and providing a swift solution to your end
users, here are a few options you may want to explore:
01. Design a variable form that only includes variables for user input
and all Exit EEPs or Button Custom EEPs to manage the document
display.
02. Design a separate form with either R:BASE Web Browser Control or
PDF Viewer Control.
03. Now define a routine on the first form (with user input) to bring
up the second form as MDI that will do exactly what you want to
do and also return the FOCUS back to the original user input form.
Implementing this swift logic will provide you with the solution you
are trying to provide to end users.
Give it a try and see how far you can go.
If you need a sample application to demonstrate such solution, let
me know and my time and schedule permitting, I will design you a
sample application that should give you an idea.
Good luck!
Very Best R:egards,
Razzak.