Icons for Office2007 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=9059
Printed Date: 18 May 2025 at 3:45am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Icons for Office2007 theme
Posted By: nebulon
Subject: Icons for Office2007 theme
Date Posted: 10 December 2007 at 4:51am
There are 3 standard icons for Office2007 theme: * recurrence occurrence * recurrence exception * private
How to add the other icons for Meeting,... In the calendar sample demo, these other icons are present for the other themes, but not for Office2007 theme.
I looked the documentation about custom icons, but the class CXTPCalendarCustomIconIDs is not defined in the documentation.
Any suggestion ?
Otherwise it's a great control. Thank you.
|
Replies:
Posted By: nebulon
Date Posted: 10 December 2007 at 6:52am
I found the solution in your sample CalendarDemoU.exe and it works:
CXTPCalendarThemeOffice2007* pTheme2007 = new CXTPCalendarThemeOffice2007(); if (pTheme2007) { //pTheme2007->m_clrBaseColor = m_ctrlThemeColor.GetSelectedColor();
////// Icon ///// UINT arIDs[5]; arIDs[0] = (UINT)xtpCalendarEventIconIDReminder; arIDs[1] = (UINT)xtpCalendarEventIconIDOccurrence; arIDs[2] = (UINT)xtpCalendarEventIconIDException; arIDs[3] = (UINT)xtpCalendarEventIconIDMeeting; arIDs[4] = (UINT)xtpCalendarEventIconIDPrivate;
pTheme2007->GetCustomIconsList()->SetIcons(XTP_IDB_CALENDAR_EVENT_GLYPHS, arIDs, 5, CSize(16, 11), xtpImageNormal); /////////////
m_CalendarCtrl.SetTheme(pTheme2007); }
|
|