[wx-dev] wxRichTextCtrl newline linking bug

Tom Gersic wxdev at teleologic.net
Thu Jan 25 14:23:16 PST 2007


Julian,

I'll see what I can figure out, but I'm not particularly good at 
debugging wxWidgets code...I think it may have something to do with 
wxRichTextCompositeObject::HitTest sending back the position of the last 
newline, rather than wxRICHTEXT_HITTEST_NONE...

Thanks,
Tom

Julian Smart wrote:
> Tom Gersic wrote:
>> Julian,
>>
>> Well, that's certainly puzzling. I was already using a build from 
>> CVS, but it was a few weeks out of date, so I just tried checking out 
>> the code from CVS again, built it, built wxRichTextCtrl Sample, and I 
>> get the exact same problem. I don't know if it matters, but this is 
>> on Windows, and I'm using Visual Studio 2003 to build everything. 
>> I've taken a picture to show what I'm seeing:
>>
>> http://gersic.com/images/richtextctrl.jpg
>>
>> Note the hand icon over an area that doesn't include a link...
>>
>> Forgive the shoddy image quality, but the default Windows 
>> screen-capture doesn't capture the mouse pointer, so I just took a 
>> picture of my screen with a camera...
> Ah, sorry, I do get the problem shown in the screenshot, I thought you 
> meant that the URL formatting carried on to the next paragraph as 
> well. I'll try to get time to look into it but you might check out the 
> hit testing code called from OnMoveMouse - evidently it doesn't do a 
> good job of figuring out where the paragraph ends.
>
> Regards,
>
> Julian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org
>




More information about the wx-dev mailing list