DialogControlState or Set to give focus to a control?

Started by stevengraff, January 21, 2014, 04:59:50 PM

Previous topic - Next topic

stevengraff

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.

George Vagenas

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
Thanks

George

stevengraff

Thank you George!

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