Print Page | Close Window

Timeline checkbox bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=14636
Printed Date: 06 May 2024 at 10:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Timeline checkbox bug
Posted By: dennisV
Subject: Timeline checkbox bug
Date 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)



Replies:
Posted By: dennisV
Date 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)


Posted By: mdoubson
Date Posted: 30 June 2009 at 12:00pm
thank you Dennis.  Sample updated - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar - 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);

..........................................


-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net