Print Page | Close Window

Hide time in month view

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=15621
Printed Date: 29 June 2025 at 11:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hide time in month view
Posted By: dennisV
Subject: Hide time in month view
Date Posted: 13 November 2009 at 7:11pm
Hi!

Is it possible to completely hide start/end time in month view mode? Or have an option to output the description and hide time if there's not enough space to output both (currently on smaller displays, the time is shown but the description is hidden)?

Thanks,

Dennis


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



Replies:
Posted By: mdoubson
Date Posted: 13 November 2009 at 7:54pm
Sure - try CalendarDemoStatic - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar  
and play with Options Pane - you will find MonthView-related setting for your case


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


Posted By: dennisV
Date Posted: 17 November 2009 at 4:43pm
Is it the same sample as comes with 13.2.1? I didn't find any setting to completely hide both the start and end time, but I'll look again in case I missed it.

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: mdoubson
Date Posted: 17 November 2009 at 5:00pm
Check void CXTPCalendarThemeOffice2007::CTOMonthViewDay::Draw(CCmdTarget* pObject, CDC* pDC)

DWORD dwOpt = XTP_SAFE_GET3(GetTheme(), GetCalendarControl(), GetCalendarOptions(), dwAdditionalOptions, 0);

BOOL bShowEndTime = XTP_SAFE_GET2(pViewEvent, GetCalendarControl(), MonthView_IsShowEndDate(), TRUE);

BOOL bDrawStartTime = dwOpt & xtpCalendarOptMonthViewShowStartTimeAlways;

BOOL bDrawEndTime = bShowEndTime && (dwOpt & xtpCalendarOptMonthViewShowEndTimeAlways);



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


Posted By: dennisV
Date Posted: 18 November 2009 at 3:41pm
Looks good - thanks! :)

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



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