Print Page | Close Window

Calendar Time Scale Theme

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=12375
Printed Date: 07 October 2024 at 3:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Calendar Time Scale Theme
Posted By: mkhadem
Subject: Calendar Time Scale Theme
Date Posted: 08 October 2008 at 3:15pm
 
Hi,
 
How can I change the current hour indicator theme in the time scale part? As you see in the snapshot it shows as a line but I like to have it as it is in the calendar example. I'm using the themeOffice2007.
 
Thanks
Mo
 
 
 



Replies:
Posted By: prashant
Date Posted: 05 December 2008 at 4:31am
In CalendarDemo sample look out for:

void CCalendarDemoView::OnUpdateTimeScale()
{  
    CXTPCalendarDayView* pDayView = DYNAMIC_DOWNCAST(CXTPCalendarDayView, GetCalendarCtrl().GetActiveView());
    if (pDayView)
    {
        pDayView->SetScaleInterval(COleDateTimeSpan(0, m_nScale/60, m_nScale%60, 0));
    }
    else {
        GetCalendarCtrl().GetCalendarOptions()->nDayView_ScaleInterval = m_nScale;
        GetCalendarCtrl().GetCalendarOptions()->OnOptionsChanged();
    }
}



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