[Bug/Solved] Multiline Editbox paste not work

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

fatmouse1984
Just popping in
Just popping in
Posts: 19
Joined: Tue Jun 10, 2014 11:20

[Bug/Solved] Multiline Editbox paste not work

Postby fatmouse1984 » Tue Jan 13, 2015 14:26

Hi

I'm using cegui 0.8.4
Try to paste on multiline editbox, but failed. found this in MultiLineEditbox.cpp , line 744

Code: Select all

 
// if there is room
    if (getText().length() - clipboardText.length() < d_maxTextLen)
    {

This must be a typo, this " - " should be "+". i changed it, and it workd.

By the way , i'm trying to expand editbox but

Code: Select all

void   handleBackspace(void);
void   handleDelete(void);
.
.
.

they are all not virtual, i have to override onKeyDown :(

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Multiline Editbox paste not work

Postby Kulik » Tue Jan 13, 2015 16:58

Yeah, seems like a typo. Could you submit a pull request please?

We can make those 2 methods virtual but the change has to go to default.

fatmouse1984
Just popping in
Just popping in
Posts: 19
Joined: Tue Jun 10, 2014 11:20

Re: Multiline Editbox paste not work

Postby fatmouse1984 » Wed Jan 14, 2015 02:09

Request sended.
Virgin pull request, hope i'm doing it right. :oops:

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Multiline Editbox paste not work

Postby Kulik » Wed Jan 14, 2015 15:35

Yes, thanks. I merged it.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 3 guests