|
From: | andy uehara |
Subject: | Re[6]: [paragui-users] RICHEDIT |
Date: | Tue, 10 Sep 2002 12:56:22 -0700 (PDT) |
I know I'm a little bit late on reply to this thread, but...
I had problems with richedit, and I submited a patch. Here's a cc of the email. This may solve John Rainey's problems, as my patch had to do with how each string ends. Since I am having problems with my linux box lately please check to see if this solves your problem.
-andy
from Andrew Ford:
Thanks Andy,
Just a couple of comments, I can't apply the patch
to look at the code since I'm parted from my Linux
machine. Are you sure you need the update? You only
have to assign to the string to clear it, i.e. word =
std::string("");
Finally, are you still getting the font error? Is
anybody here on the freetype mailing list and could
tell me if there's something up with freetype. I
noticed some complaints about SDL_ttf...
Andrew
--- andy uehara <address@hidden> wrote:
> Here's a possible patch for the problems I mentioned
> before.
> 1st: When you PGRE.setText before the widget gets
> shown it does some funky stuff
> 2nd: When you load text with a space at the end it
> repeats the last word.
>
> here's a brief description of what I did:
> 1st: I added an Update(true) to the end of every
> SetText() function call. This may not be the most
> efficient way to solve this problem though
> 2nd: In ParseWords() I moved std::string down inside
> the do{ }while loop. this makes sure that the string
> is clear everytime and doesn't add the last loaded
> word. I think this is probably the best solution.
>
> here's the diff:
> address@hidden:~/sign/test$ diff
> /usr/src/paragui-1.0.2/src/widgets/pgrichedit.cpp
> myre.cpp
> 105a106
> > Update(true);
> 111a113
> > Update(true);
> 116d117
> < std::string word;
> 124a126
> > std::string word;
>
> I don't know how most patches are submitted, so ask
> me
> if you have any other questions.
> andy
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> _______________________________________________
> paragui-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
[Prev in Thread] | Current Thread | [Next in Thread] |