PyCEdit.SetSel

SetSel(start, end, bNoScroll)

Sets the selection in the edit control.

Parameters

start : int

Specifies the starting position. If start is 0 and end is -1, all the text in the edit control is selected. If start is -1, any current selection is removed.

end=start : int

Specifies the ending position.

bNoScroll=0 : int

Indicates whether the caret should be scrolled into view. If 0, the caret is scrolled into view. If 1, the caret is not scrolled into view.

Alternative Parameters

start,end)

As for normal start, end args.

bNoScroll

Indicates whether the caret should be scrolled into view. If 0, the caret is scrolled into view. If 1, the caret is not scrolled into view.

MFC References

CEdit::SetSel