Rick is correct. Every control is derived from a base type that has a Focus 
method, which you call with something like:

Dialog.Control("My_Control_ID").Focus()

Thanks,

Aaron

-- 
Aaron Smith 
Web Development * App Development * Product Support Specialist
Ai Squared * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * www.aisquared.com

To insure that you receive proper support, please include all past 
correspondence (where applicable), and any relevant information pertinent to 
your situation when submitting a problem report to the Ai Squared Technical 
Support Team.

> -----Original Message-----
> From: Scripting [mailto:scripting-
> [email protected]] On Behalf Of Rick
> Thomas via Scripting
> Sent: Friday, February 13, 2015 8:00 AM
> To: 'David'; 'Window-Eyes Scripting List'
> Subject: RE: Edit Box Question
> 
> Hi: Not sure but isnt there a focus method for that TextBox or one for the
> form?
> Perhaps it might be a Property but that is a standard feature of most
> programming languages so I am guessing VbScript supports a focus method
> or property as welll.
> Rick USA
> 
> -----Original Message-----
> From: Scripting
> [mailto:[email protected]] On
> Behalf Of David via Scripting
> Sent: Friday, February 13, 2015 7:09 AM
> To: GWScripting
> Subject: Edit Box Question
> 
> Please, Developers.
> 
> I have a dialog here, with an Edit box (Box1), where the user is to enter some
> text.
> 
> Next, there is an "Execute" button, which will start a certain process.
> 
> Third, there is a "Result" edit box (Box2). The results that came from the
> processing - based on the entered text in the first Edit box - will be
> presented in this Resulting Box2.
> 
> Don't worry about the actual processing, or why I have this set up. It all 
> works
> as it should. What I don't seem to have a fix for, and which I could use a 
> bit of
> assistance on, is this.
> 
> When the processing has ended, and the Resulting Box2 has got updated, I
> would have liked the focus to automatically jump to that box. That is, you
> focus on Box 1, type in your message, hit the shortcut for the Execute-
> button, and when the processing has ended, you would automatically be
> taken to the Resulting Box2. Does all that make sense?
> And, can it actually be done?
> 
> Tried to scroll the properties and methods of the Edit Box, in the developer's
> reference, but either it did not occur very clearly, or I might be more blind
> than what I thought. Smiles.
> So, if anyone has a workaround, or any further suggestions, i would be all
> thankful. Due to the nature of the process and handling of things, updating
> the first edit box with the final results, simply is no option.
> And I would much prefer not to have to call another dialog, just to perform
> the displaying of the Results.
> 
> Of course, I could always depend on the user knowing that he has to tab over
> to the resulting box to check the outcome, but experience tells me most
> users won't realize that just out of the blue. So whatever can be done
> automatically, would of course be the best.
> 
> Staff members, if this is not currently possible, could it be implemented?
> Something like a PutFocusOn property for the Edit box - or even the other
> controls as well - in a dialog?
> 
> Thanks,
> 
> --
> David
> 
> _______________________________________________
> Any views or opinions presented in this email are solely those of the author
> and do not necessarily represent those of Ai Squared.
> 
> For membership options, visit
> http://lists.window-eyes.com/options.cgi/scripting-window-
> eyes.com/ofbgmail%
> 40mi.rr.com.
> For subscription options, visit
> http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
> List archives can be found at
> http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com
> 
> _______________________________________________
> Any views or opinions presented in this email are solely those of the author
> and do not necessarily represent those of Ai Squared.
> 
> For membership options, visit http://lists.window-
> eyes.com/options.cgi/scripting-window-
> eyes.com/asmith%40aisquared.com.
> For subscription options, visit http://lists.window-
> eyes.com/listinfo.cgi/scripting-window-eyes.com
> List archives can be found at http://lists.window-
> eyes.com/private.cgi/scripting-window-eyes.com


_______________________________________________
Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Ai Squared.

For membership options, visit 
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com.
For subscription options, visit 
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at 
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com

Reply via email to