Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Is it possible to set a long string of text to an edit box, but then move the curser back to the begining of the editbox so the user sees the begining portions of the data instead?
I see there is a trick to make it work for multi-line edit boxes, but couldn't find anything to work for single line edit boxes.
I'm running 2003J.
; Highlight MultilineBox using SendMessage EM_SETSEL cntrlnum = 002 EM_SETSEL = 177 controlhandle = DllCall(DirWindows(1):"USER32.DLL",long:'GetDlgItem',long:MyDialog_Handle,long:cntrlnum+99) SendMessageA( controlhandle, EM_SETSEL, 0, 0)
; Highlight Multiline Editbox cntrlname = "MultiLineBox_1" EM_SETSEL = 177 controlhandle = DialogControlGet( MyDialog_Handle, cntrlname, DC_HANDLE ) SendMessageA( controlhandle, EM_SETSEL, 0, 0)
Article ID: W16408
File Created: 2010:03:24:12:33:36
Last Updated: 2010:03:24:12:33:36