Edit Box/Text Area Selection API

Christopher Slade <[email protected]> 08 Oct 2003 16:04:04 -0600
Newsgroups gmane.comp.embedded.stk.gui.devel
Message-ID <1065650641.3650.3.camel@localhost>
I just wanted to pass the API I had in mind for selecting text in an
edit box or text area


To set the text
void selection(int start, int end)

To get the current selection
int selection_start()
int selection_end()

And also to get the currently selected text

std:wstring selection()
(which will return nothing if nothing is selected)

Let me know what you think.
Thanks, Chris