Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text box item caret position
#5
Code:
Copy      Help
int LineNumber=10
int w=win("- Notepad" "Notepad")
int c=id(15 w) ;;editable text 'Text Editor'
LineNumber-1 ;;(line numbers start at zero so need to subtract 1)
int ci=SendMessage(c EM_LINEINDEX LineNumber 0);;
SendMessage(c EM_SETSEL ci ci)


Messages In This Thread
Text box item caret position - by cuitino - 10-22-2019, 01:48 AM
RE: Text box item caret position - by Kevin - 10-22-2019, 01:57 AM
RE: Text box item caret position - by cuitino - 10-22-2019, 11:05 AM
RE: Text box item caret position - by cuitino - 10-22-2019, 12:35 PM
RE: Text box item caret position - by Kevin - 10-22-2019, 03:19 PM
RE: Text box item caret position - by cuitino - 10-22-2019, 06:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)