Page 1 of 1

EditBox/MultiLineEditbox - eraseSelectedText()

Posted: Fri Sep 26, 2014 16:09
by cyberjunk
Two things I'd like to mention:

1) I think it would be useful to make the methods "eraseSelectedText()" of EditBox and the MultiLineEditbox public.
In my case I wanted to implement a CTRL+X clipboard feature and was exactly looking for this method to erase the selected text.

2) The "eraseSelectedText()" for Editbox is not working correctly for me in 0.8.3.
Compare it with the same method of MultiLineEditbox and you'll notice that it is doing the "clearSelection()" call to early, before it is actually reading the selected substring.

Here's a link to the changeset on my local CEGUI 0.8.3 sources in SVN, but I've verified these things are still the same in the current main head revision:
https://code.google.com/p/meridian59-do ... etail?r=89

Re: EditBox/MultiLineEditbox - eraseSelectedText()

Posted: Sat Sep 27, 2014 07:16
by Ident
Could you make a pull request of these changes for v-0 branch in our bitbucket repository? The visibility change breaks ABI so this cannot go into v0-8.