David,

    Do a editbox change event for that specific editbox. It will take care of 
itself. So, if stuff get inserted into that editbox it will give a change event 
for the editbox. 
Then you can do a routine to focus on the editbox once this has happened.
So look at the editbox events and you will find the one you need, 
EditBoxChange...

    Bruce

Sent: Friday, February 13, 2015 7:09 AM
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/lab4me%40fltg.net.
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

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.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