Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - refresh one event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

refresh one event

 Post Reply Post Reply
Author
Message
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Topic: refresh one event
    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
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2009 at 11:18am

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
Back to Top
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2009 at 8:12am
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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2009 at 2:34pm
This is the same action built-in dialog doing
Back to Top
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2009 at 5:03pm
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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2009 at 5:13pm
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));

else

VERIFY(pData->ChangeEvent(m_ptrEditingEvent));

m_ptrControl->Populate();

}

}

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.