[wx-dev] wxRichTextCtrl newline linking bug
Tom Gersic
wxdev at teleologic.net
Thu Jan 25 09:34:07 PST 2007
Julian,
I just noticed that when text is linked prior to a newline, that newline
takes on the link properties of the text that precedes it, even if it
hasn't specifically been set to a link style. I imagine this has
something to do with the fact that the link is extending to the far
right side of the control...Adding a space in front of the newline will
fix the problem, but this solution isn't particularly feasible in my
application. Since a newline probably doesn't really need to have any
sort of style information, is there a way to always cause newlines to
respond to GetStyle as a normal, non-linked style, or HasFlag as false?
Thanks,
Tom
> One other problem that I've noticed with wxRichTextCtrl is that when
> you have a link at the end of a line, that link carries all the way
> over to the right side of the control. The link doesn't show up
> visually, but the mouse cursor changes to a hand, and a click will
> activate the link, even though the mouse isn't placed over the link.
> Here's an image that illustrates the issue:
>
> http://gersic.com/files/wxRichTextCtrl3.jpg
>
More information about the wx-dev
mailing list