Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Timeline checkbox bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Timeline checkbox bug

 Post Reply Post Reply
Author
Message
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Topic: Timeline checkbox bug
    Posted: 27 June 2009 at 5:28am
Hi,

Run the Calendar demo, click on the timeline checkbox in Month view to turn it on, then go to menu, click on the menu item to turn it off, the view changes, but the checkbox in it is still checked.
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2009 at 5:28am
Doh, this is of course in 13.1.0
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
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: 30 June 2009 at 12:00pm
thank you Dennis.  Sample updated - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar
This is a fix in file XTPCalendarCaptionBar.cpp

void CXTPCalendarCaptionBarTheme::UpdateControlsState()

{

if (!GetCalendarCtrl() || !GetCalendarCtrl()->GetActiveView())

return;

m_pShowWorkWeek->SetVisible(FALSE);

m_pShowFullWeek->SetVisible(FALSE);

m_pShowMcWeek->SetVisible(FALSE);

m_pButtonViewDay->SetCheck(0);

m_pButtonViewWeek->SetCheck(0);

m_pButtonViewMonth->SetCheck(0);

m_pShowTimeline->SetVisible(m_bTimelineEnable);

int iScale = GetCalendarCtrl()->GetTimeLineScale();

int nViewType = GetCalendarCtrl()->GetActiveView()->GetViewType();

//BOOL bTimelineMode = m_pShowTimeline->GetCheck();

BOOL bTimelineMode = GetCalendarCtrl()->m_bTimelineMode;

m_pShowTimeline->SetCheck(bTimelineMode);

..........................................
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.188 seconds.