WinBatch Technical Support Forum

Archived Boards => WinBatch Dynamic Dialogs => Topic started by: stevengraff on January 21, 2014, 04:59:50 pm

Title: DialogControlState or Set to give focus to a control?
Post by: stevengraff on January 21, 2014, 04:59:50 pm
How can I give the focus to a multiline box in a dialog? I see how I can hover the mouse over it using dialogControlState request-code 6, but I want the cursor in the box, as if I had actually clicked it.
Title: Re: DialogControlState or Set to give focus to a control?
Post by: George Vagenas on January 21, 2014, 05:33:23 pm
I have a text box on a form, this sets the focus to it when the dialog displays
    DialogControlState(Handle, edtMaxSize, 1, 0)
as per the help file 1 = give control focus
Title: Re: DialogControlState or Set to give focus to a control?
Post by: stevengraff on January 22, 2014, 09:44:15 am
Thank you George!

I was going too fast for my own good... probably read that 3 times before posting, just didn't sink in.