Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Icons for Office2007 theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icons for Office2007 theme

 Post Reply Post Reply
Author
Message Reverse Sort Order
nebulon View Drop Down
Newbie
Newbie


Joined: 05 December 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote nebulon Quote  Post ReplyReply Direct Link To This Post Topic: Icons for Office2007 theme
    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);
        }

Back to Top
nebulon View Drop Down
Newbie
Newbie


Joined: 05 December 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote nebulon Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.