UI module

set_contents

procedure · 1 overloadsince 0.31.0Source

Replace everything with text and put the caret at the start. History is cleared.

set_contents :: (edit: *Text_Edit, text: string)

Replace everything with text and put the caret at the start. History is cleared.

Parameters

edit: *Text_Edit
the text being edited.
text: string
the new text.

See also