Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selection on a scintilla window
#13
I tried to compose the code for setting the text for the complete text and selected text but it was to difficult.

I found here:
http://www.scintilla.org/ScintillaDoc.html#SCI_SETTEXT

The following two text modification commands:

1)
This replaces all the text in the document with the zero terminated text string you pass in:
Code:
Copy      Help
SCI_SETTEXT(<unused>, const char *text)

2)
The currently selected text between the anchor and the current position is replaced by the 0 terminated text string. If the anchor and current position are the same, the text is inserted at the caret position. The caret is positioned after the inserted text and the caret is scrolled into view:
Code:
Copy      Help
SCI_REPLACESEL(<unused>, const char *text)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)