Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Some more problems with CalendarControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Some more problems with CalendarControl

 Post Reply Post Reply
Author
Message
inforapid View Drop Down
Groupie
Groupie


Joined: 31 March 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote inforapid Quote  Post ReplyReply Direct Link To This Post Topic: Some more problems with CalendarControl
    Posted: 22 February 2009 at 12:28am
Sorry, but I have realized some more bugs in the calendar control.

- Markup support. If the event view is resized, the layout and the line breaks are not recalculated. The first picture shows the day view after resizing the window, the second after I have forced the recalculation by switching to week view and back to day view.





- In week or month view, events with markup text are empty



- I'm not sure if this is a bug but categories are additive which is a little bit strange.



- If tooltips are set to custom, they don't work in timeline mode and throw an assertion in debug compiles.



Further more, I have one suggestion. Wouldn't it be nice if I can select the date range, which should be printed? Most times, I don't want to print the current view, I want to print all views starting with date x and ending with date y on n pages where I have events defined. It would be great if this could be implemented in the next release - and if the algorithm for the timeline view could be made faster ;-)

Kind Regards
Ingo Straub
Back to Top
inforapid View Drop Down
Groupie
Groupie


Joined: 31 March 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote inforapid Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2009 at 2:04pm
Hi,

I have found another bug in the timeline view. If the vertical scroll position is not at top, the wrong tooltips are displayed. You can see it at the screenshot below. The mouse cursor is at the EVENT NOW event, while the tooltip displays the text for the AllDay event.



Kind Regards
Ingo
Back to Top
inforapid View Drop Down
Groupie
Groupie


Joined: 31 March 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote inforapid Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2009 at 12:36am
I have found another bug with the timeline mode. Your algorithm for compacting the events doesn't work correct. To show this I have attached two screenshots. The first shows the non compact, the second the compact timeline view. As you can see, the bottom part of the events are not shifted to the top even though there is a large amount of free space above.

Not compacted timeline view


Compacted timeline view


Kind Regards
Ingo
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2009 at 8:10pm

The reason why there is no shift sometimes is to prevent events jump on each scroll step.

Back to Top
inforapid View Drop Down
Groupie
Groupie


Joined: 31 March 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote inforapid Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2009 at 9:21pm
Hello Mark,

Is there a way to select an event in the timeline view? I have seen that you have implemented drawing like
if event is selected then draw focusrectangle
but I can't select an event, the function CXTPCalendarView::SelectEvent doesn't work for the timeline view. I also don't get a selectchange notification if an event in the timeline view is selected.

Regarding your comment to my last post: If I scroll left or right, there are no events displayed in the free region. So I see no reason, why the gap should be necessary.

Kind Regards
Ingo

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2009 at 9:39pm
This is that I tried to explain early - if you do event sorting only for visible range, little scroll step will change all picture - some events will jump up and so on. I tried to stabilize this situation using long range (like visible rangle +/- month or event more). It does not mean that there is always gap - it depends.
 
You can select Event in the term of identify it and call context menu or direct action. There is no selection as make a member of some container yet.
Back to Top
inforapid View Drop Down
Groupie
Groupie


Joined: 31 March 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote inforapid Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2009 at 10:43pm
Hello Mark,

I understand what you mean, but it is not correct. There is no event in the future and no event in the past. The timeline view contains only the events which are displayed in my screenshot, no more events when I scroll left and no more events when I scroll right.

Kind Regards
Ingo
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2009 at 10:51pm
Hi, Ingo, could you attach you *.cal file so I can run it and test your situation please
Back to Top
inforapid View Drop Down
Groupie
Groupie


Joined: 31 March 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote inforapid Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2009 at 1:06am
Hello Mark,

I have attached the xtp_cal file.

uploads/20090301_010755_timeline.zip

Kind Regards
Ingo
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2009 at 2:51pm
Thanks, got it.
Try this updates in sample app
 
 
and this is a snapshot:
 
 
(There is some problems with Update Post after inserting images or attachments - guess need to restart Web site)
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.145 seconds.