Icons for Office2007 theme |
Post Reply |
Author | |
nebulon
Newbie Joined: 05 December 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
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. |
|
nebulon
Newbie Joined: 05 December 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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); } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |