![]() |
Hidden events |
Post Reply ![]() |
Author | |
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() 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
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 |
|
![]() |
|
rsvihalek ![]() Groupie ![]() Joined: 21 August 2009 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
rsvihalek ![]() Groupie ![]() Joined: 21 August 2009 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |