Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Bug in previous/Next appointment
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug in previous/Next appointment

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


Joined: 20 December 2008
Location: Belgium
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote skiman Quote  Post ReplyReply Direct Link To This Post Topic: Bug in previous/Next appointment
    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
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: 01 November 2009 at 2:30pm
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
Back to Top
skiman View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Location: Belgium
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote skiman Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 3:52pm
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
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: 03 November 2009 at 4:31pm
Yes - you right, thanks. CaptionBar button do ONE notification call but Office 2007 theme Tab buttons do TWO. Fixed. Please try updated version -
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.203 seconds.