Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Hidden events
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hidden events

 Post Reply Post Reply
Author
Message
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 Topic: Hidden events
    Posted: 30 July 2009 at 1:51pm
I  add new event property - EventVisible
You can set it in PrePopulate function call based on your model logic
 
 
e.g. in void CCalendarDemoView::OnEvent_PrePopulate(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam){ ...

int nCount = pEvents->GetCount(); for (int i = 0; i < nCount; i++) { CXTPCalendarEvent* pEvent = pEvents->GetAt(i);

if (pEvent->GetBody() == _T("3") && pEvent->GetLocation() == _T("2") && pEvent->GetSubject() == _T("1"))

{ pEvent->SetEventVisible(FALSE); }

I am interesting in your testing with hidden reminders - please post
Back to Top
rsvihalek View Drop Down
Groupie
Groupie


Joined: 21 August 2009
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote rsvihalek Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2009 at 9:12am
Hello Mark,
I've tested mentioned property with 13.2.0 and found one problem: space for invisible event is still allocated and not used in the calendar (event just disapper). So when I have several events that are shown side by side and I want to hide some of them - I can do it, but size of the others stays unchanged.
Is this the correct behavior?

Thank you
Product: Xtreme ToolkitPro v13.3.0
Platform: Windows 7 (64bit) - SP 2
Language: Visual C++ 9.0

www.ActivityMon.com
The Ultimate Monitoring Solution
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: 03 November 2009 at 10:54am
You right - my goal was: protect some private event from non-autorized viewers (not to save some space!). Sure we can also utilize this space in next release.
Back to Top
rsvihalek View Drop Down
Groupie
Groupie


Joined: 21 August 2009
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote rsvihalek Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2009 at 10:50am
Ok, thank you for the answer (but I hope it will change in the future ;-) )
Product: Xtreme ToolkitPro v13.3.0
Platform: Windows 7 (64bit) - SP 2
Language: Visual C++ 9.0

www.ActivityMon.com
The Ultimate Monitoring Solution
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.125 seconds.