refresh one event |
Post Reply |
Author | |
Ditte
Groupie Joined: 28 October 2007 Status: Offline Points: 94 |
Post Options
Thanks(0)
Posted: 28 August 2009 at 7:52am |
Hi,
Iīve changed the location, subject and also the body inside the calendar (with user defined dialog, not built-in dialog) Set ComSubject of hoEvent to sSubject Set Comlocation of hoEvent to sLocation Set Combody of hoEvent to sBody I can send Send ComRemoveAllEvents of hoDataProvider Send ComPopulate Send ComRedrawControl but Iīm afraid that it need a long time (if there are many events) Is there a way (I donīt found it) to refresh only the changed event? |
|
Regards
Dittmar Product: Xtreme SuitePro (ActiveX) 13.4.2 Platform: Win XP Language: Visual Dataflex 16.1 |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
I would use: CHANGE EVENTS DATA then
hoDataProvider.ChangeEvent hoEvent
COMPopulate
Thats - in my case - instant
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
Ditte
Groupie Joined: 28 October 2007 Status: Offline Points: 94 |
Post Options
Thanks(0)
|
Thanks,
it works fine. I donīt look at CalendarDataProvider. |
|
Regards
Dittmar Product: Xtreme SuitePro (ActiveX) 13.4.2 Platform: Win XP Language: Visual Dataflex 16.1 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
This is the same action built-in dialog doing
|
|
Ditte
Groupie Joined: 28 October 2007 Status: Offline Points: 94 |
Post Options
Thanks(0)
|
but I donīt use the built-in dialog.
Where can I find out what itīs doing? |
|
Regards
Dittmar Product: Xtreme SuitePro (ActiveX) 13.4.2 Platform: Win XP Language: Visual Dataflex 16.1 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
In my comment about built-in dialog I mean that it use same function call in OnOK handler:
.................
CXTPCalendarData* pData = m_ptrEditingEvent->GetDataProvider();
if (pData) {
...................
// Update event in data storage
CXTPCalendarControl::CUpdateContext updateContext(m_ptrControl, xtpCalendarUpdateLayout | xtpCalendarUpdateRedraw); if (m_bAddEvent)VERIFY(pData->AddEvent(m_ptrEditingEvent)); elseVERIFY(pData->ChangeEvent(m_ptrEditingEvent)); m_ptrControl->Populate(); } } |
|
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 |