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 » CalendarCtrl » [Minor bug & patch] CalendarCtrl should offer support for native cursor icon.
[Minor bug & patch] CalendarCtrl should offer support for native cursor icon. [message #39545] Wed, 27 March 2013 13:32 Go to next message
Klugier is currently offline  Klugier
Messages: 886
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello,

I have enclosed patch code (CtrlLib/DateTimeCtrl - line 309):

Image Calendar::CursorImage(Point p, dword keyflags)
{
	bool b = (selall == false ? Day(newday) > 0 : true);
	if((newday != nullday && b) || istoday)
		return Image::Hand();
	else
		return Image::Arrow();
}


Sincerely,
Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Wed, 27 March 2013 13:33]

Report message to a moderator

Re: [Minor bug & patch] CalendarCtrl should offer support for native cursor icon. [message #40117 is a reply to message #39545] Fri, 14 June 2013 13:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13468
Registered: November 2005
Ultimate Member
In this particular case I am not quite sure that we want hand there.... These are not links.
Re: [Minor bug & patch] CalendarCtrl should offer support for native cursor icon. [message #40118 is a reply to message #40117] Fri, 14 June 2013 21:18 Go to previous message
Klugier is currently offline  Klugier
Messages: 886
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello Mirek,

You are right I had similar idea in the past, but in this case I had fixed only cursor image.

Personally, I think that we should totally remove "hand" part. So the final code should look like this:

Image Calendar::CursorImage(Point p, dword keyflags)
{
    return Image::Arrow();
}


Sincerely,
Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Fri, 14 June 2013 23:57]

Report message to a moderator

Previous Topic: Setting FirstDay puts day numbers out of alignment with day names
Next Topic: Little improvement of Caledar & DropDate controls
Goto Forum:
  


Current Time: Wed Dec 08 19:28:26 CET 2021

Total time taken to generate the page: 0.01481 seconds