Page 1 of 1

Scintilla select text

Posted: Wed Mar 26, 2025 1:24 pm
by rndrei
How to select all text in a document? This doesn't work:

Code: Select all

  ScintillaSendMessage(#SC, #SCI_SETSELECTION,0, ScintillaSendMessage(#SC, #SCI_GETLENGTH))

Re: Scintilla select text

Posted: Wed Mar 26, 2025 1:59 pm
by Axolotl
Have you tried this:

Code: Select all

#SCI_SELECTALL   ; This selects all the text in the document. The current position is not scrolled into view.

Re: Scintilla select text

Posted: Wed Mar 26, 2025 2:04 pm
by fluent

Code: Select all

 ScintillaSendMessage(#ScintillaGadget, #SCI_SETSEL, 0, -1) 
(with the help of ChatGPT)