Home » U++ Library support » RichText,QTF,RTF... » [Minor bug report & patch] RichTextView should use native ibeam icon.
Re: [Minor bug report & patch] RichTextView should use native ibeam icon. [message #39499 is a reply to message #39497] |
Sat, 23 March 2013 13:01 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
In meanwhile, I have noticed that we need to patch the link part too. Finally, the code should look like this:
Image RichTextView::CursorImage(Point p, dword keyflags)
{
int pos = GetPointPos(p);
if(WhenLink && pos >= 0 && !IsNull(GetLink(pos, p)))
return Image::Hand();
if(HasCapture())
return Image::IBeam();
return Image::Arrow();
}
Sincerely,
Klugier
U++ - one framework to rule them all.
|
|
|
Goto Forum:
Current Time: Sat May 18 04:28:08 CEST 2024
Total time taken to generate the page: 0.01743 seconds
|