Home » U++ Library support » RichText,QTF,RTF... » [Minor bug report & patch] RichTextView should use native ibeam icon.
[Minor bug report & patch] RichTextView should use native ibeam icon. [message #39477] |
Wed, 20 March 2013 15:35 |
|
Klugier
Messages: 1075 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I have noticed that RichTextView uses core upp ibean icon instead of native system icon.
I have enclosed patched code (CtrLib/RichTextView.cpp - line 84):
Image RichTextView::CursorImage(Point p, dword keyflags)
{
int pos = GetPointPos(p);
if(WhenLink && pos >= 0 && !IsNull(GetLink(pos, p)))
return CtrlImg::HandCursor();
if(HasCapture())
return Image::IBeam();
return Image::Arrow();
}
Sincerely,
Klugier
U++ - one framework to rule them all.
|
|
|
|
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: 1075 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: Fri Mar 29 13:17:07 CET 2024
Total time taken to generate the page: 0.01148 seconds
|