Setting |
Post Reply |
Author | |
zaksoft
Senior Member Joined: 05 June 2003 Location: Italy Status: Offline Points: 162 |
Post Options
Thanks(0)
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)
|
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 |