Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog text selected
#1
i was thinking you answered this for me before but darned if i can find it.

i'm passing a value of a text field over to a dialog via a function and i want the cursor to be at the top of the text field rather than having it at the bottom with all the text selected.

how can i do this?

thanks
An old blog on QM coding and automation.

The Macro Hook
#2
In Dialog Editor or template, move some other nonstatic visible enabled control to the top of the Z order. Or, in dialog procedure, under WM_INITDIALOG, call SetFocus for some other control and return 0.
#3
i found a differ way to do it using the "events" button in the dialog editor.

VERY HANDY that button!

thanks. Big Grin
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)