Scintilla select text

Just starting out? Need help? Post your questions and find answers here.
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 151
Joined: Thu Dec 28, 2023 9:04 pm

Scintilla select text

Post 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))
Axolotl
Enthusiast
Enthusiast
Posts: 797
Joined: Wed Dec 31, 2008 3:36 pm

Re: Scintilla select text

Post 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.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
fluent
User
User
Posts: 72
Joined: Sun Jan 24, 2021 10:57 am

Re: Scintilla select text

Post by fluent »

Code: Select all

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