Author Topic: DialogControlState or Set to give focus to a control?  (Read 3435 times)

stevengraff

  • Sr. Member
  • ****
  • Posts: 271
DialogControlState or Set to give focus to a control?
« 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.

George Vagenas

  • Full Member
  • ***
  • Posts: 102
Re: DialogControlState or Set to give focus to a control?
« Reply #1 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
Thanks

George

stevengraff

  • Sr. Member
  • ****
  • Posts: 271
Re: DialogControlState or Set to give focus to a control?
« Reply #2 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.