Print Page | Close Window

Hidden events

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=14874
Printed Date: 28 September 2024 at 2:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hidden events
Posted By: mdoubson
Subject: Hidden events
Date 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
 
Use fresh source upgrade -   https://forum.codejock.com/uploads/DemoVersion/CalendarControlMFCUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarControlMFCUpdated.rar
 
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


-------------
Mark Doubson, Ph.D.



Replies:
Posted By: rsvihalek
Date 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

http://www.ActivityMon.com - www.ActivityMon.com
The Ultimate Monitoring Solution


Posted By: mdoubson
Date 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.

-------------
Mark Doubson, Ph.D.


Posted By: rsvihalek
Date 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

http://www.ActivityMon.com - www.ActivityMon.com
The Ultimate Monitoring Solution



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net