Bug in previous/Next appointment |
Post Reply |
Author | |
skiman
Groupie Joined: 20 December 2008 Location: Belgium Status: Offline Points: 88 |
Post Options
Thanks(0)
Posted: 01 November 2009 at 9:54am |
Hi,
I found the following problem. I have a calendar with a captionbar and a date picker. Create an event O the first of October and an event at the end of December. Choose the monthview in the calendar and select the month november. The 'tab' next appointment and previous appointment will appear. Click on the 'NEXT' or 'PREVIOUS' tab. Two problems: 1. The viewchanged event is NOT fired. If you test the same situation in WEEK view, the viewchanged event is fired twice. 2. If you click on the next/previous button in the captionbar, nothing happens. Only the second time it will execute the action. This happens only in month view. I hope you understand my explanation. If any questions concerning this bug, you can contact me. Best regards, Chris Andries |
|
ABO Service
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
I run your case in VB (CalendarSample) under 13.2.1 ocx
function in frmMain: Private Sub CalendarControl_ViewChanged() called and called only once in both your 2 cases and in MonthView and WeekView (2-column mode) - for MonthView PrevApt-NextApt Tab buttons and for CaptionBar Prev-Next buttons
|
|
skiman
Groupie Joined: 20 December 2008 Location: Belgium Status: Offline Points: 88 |
Post Options
Thanks(0)
|
Hi,
I did the following test.
1. Started with an empty database.
2. Select week view in multicolumn mode.
3. Add an appointment on 12 november.
4. Select previous week. The current view is from 2 untill 8 november.
5. The 'next appointment' tab appears at the right.
6. The viewchanged event is fired twice.
In the event I checked with ActiveView:Days
first time the event is fired:
the begindate is 12 november, lenght is 1 day. 12 november is the date of the appointment.
second time the event is fired:
The begindate is 9 november and lenght is 7 days. This is the correct date according to the resulting view.
I hope this helps to test this.
regards,
Chris.
|
|
ABO Service
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Yes - you right, thanks. CaptionBar button do ONE notification call but Office 2007 theme Tab buttons do TWO. Fixed. Please try updated version -
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |