Setting Focus to an item in an Dialog Edit Box

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Setting Focus to an item in an Dialog Edit Box

Post by kpassaur » Mon Apr 06, 2009 9:08 pm

When I open my Dialog box the text in the Edit Box is highlighted, which is what I want. When I reset the dialog box, it no longer has focus to this box, I have to move my cursor to it. Is there a setting I am missing that can place the focus on this box?

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Apr 07, 2009 5:01 am

If you're on release 11 you can use SetDialogObjectFocus>.

Prior to release 11 there was a libfunc> line that I can't seem to find on the forum. I have it at work so if no one else posts it let me know.

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Settting Focus

Post by kpassaur » Tue Apr 07, 2009 7:27 am

Perfect!, I didn't know of the new command. It seems by the time I come arround to using all the new ones a new release comes out. Which by the way is fantastic, it just makes me feel foolish for putting up a post.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts