Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
Klugier is currently offline  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 #39497 is a reply to message #39477] Sat, 23 March 2013 12:00 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OK, patched.

Mirek
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 Go to previous message
Klugier is currently offline  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.
Previous Topic: Weird problems with Report / PDF Export / Printing, sometimes even crashes
Next Topic: Set RichEdit ctrl readonly but still be able to scroll and select/copy text
Goto Forum:
  


Current Time: Fri Mar 29 13:17:07 CET 2024

Total time taken to generate the page: 0.01148 seconds