MCPcopy Create free account
hub / github.com/lxn/walk / SetTextSelection

Method SetTextSelection

textedit.go:230–232  ·  view source on GitHub ↗
(start, end int)

Source from the content-addressed store, hash-verified

228}
229
230func (te *TextEdit) SetTextSelection(start, end int) {
231 te.SendMessage(win.EM_SETSEL, uintptr(start), uintptr(end))
232}
233
234func (te *TextEdit) ReplaceSelectedText(text string, canUndo bool) {
235 te.SendMessage(win.EM_REPLACESEL,

Callers 2

AppendTextMethod · 0.95
WndProcMethod · 0.95

Calls 1

SendMessageMethod · 0.65

Tested by

no test coverage detected