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 » Update to CalendarCtrl / TimeDateCtrl
Update to CalendarCtrl / TimeDateCtrl [message #10123] Thu, 21 June 2007 14:20 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
While trying to fix a problem I had with these controls I have made some modifications (and hopefully improvements) to the functionality and design (no offense intended unodgs, most of the code was lovely Smile).

The problems I've tried to fix are:
Only being able to use the popup functionality with an EditDate control (my app requires a custom date format)
SetDate not actually setting the date.
No support for SetData/GetData

Interface changes:
SetDate - now sets the selected date and moves the calendar view to display the selection
GetDate - return the currently selected date
Added: SetView - moves the calendar view without changing the selection
Added: SetData/GetData same as Set/GetDate
Added: GetView - returns the view (day will always be 1)
Added: HasCursor - return true if the mouse is over a date
Added: GetCursor - returns the mouseover date (day will be 0 if HasCursor == false)
(Has/GetCursor are to support possible future improvements, perhaps a WhenBar callback)

Other changes:
Added chameleon support (this needs some more work)
Simplified internal structure (inc. removing some redundant members)
Can now be used as pop-up by any control (TimeDateCtrl modified to support this)

I believe I've kept the interface working as it did before (with the exception of SetDate, which didn't work properly IMO) so this should not break any existing apps. When I've got some more time I'll put together an example and add some more stuff.

Thanks to unodgs for the ctrl, I'm very glad he wrote all complicated code Smile.

James
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem assigning a date to CalendarCtrl
Next Topic: New SetDate for DateTimeCtrl
Goto Forum:
  


Current Time: Mon May 06 07:30:37 CEST 2024

Total time taken to generate the page: 0.02496 seconds