|  | 
| Setting | 
| Post Reply   | 
| Author | |
| zaksoft   Senior Member     Joined: 05 June 2003 Location: Italy Status: Offline Points: 163 |  Post Options  Thanks(0)  Quote  Reply  Topic: Setting Posted: 04 April 2009 at 2:00pm | 
| I insert new events into calendar reading from a DB, into a loop I use CXTPCalendarEventPtr ptrEvent = pDataProvider->CreateNewEvent(); ptrEvent->SetStartTime( dtIni); // Need to set color if ( sDaily == _T( "S")) ptrEvent->SetAllDayEvent( TRUE); pDataProvider->AddEvent(ptrEvent);  After getting CXTPCalendarEventCategoryIDs * pCat = ptrEvent->GetCategories(); I dont know how to set (for example) xtpCalendarEventCategoryGreen to the event TIA | |
| 
     VS2022 - MFC MBCS Statically linked XTP 23.1 Static Link --------------------------------------------------------- Davide Zaccanti - ZakSoft - www.zaksoft.com | |
|  | |
| mdoubson   Senior Member     Joined: 17 November 2008 Status: Offline Points: 1705 |  Post Options  Thanks(0)  Quote  Reply  Posted: 08 April 2009 at 4:24pm | 
| 
   Check how it done in Event Editor
    | |
|  | |
| 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 |