Print Page | Close Window

Add own icon and show the icon

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=22642
Printed Date: 28 March 2024 at 9:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add own icon and show the icon
Posted By: bubken
Subject: Add own icon and show the icon
Date Posted: 26 June 2015 at 7:44am
Hi

I am using Xtreme Calendar Pro v13.
You can show a reminder, private, recurrence icon on the event line in the calendar.
But now I want to show an unread mail icon and a read mail icon.
I have searched and looked at the samples of Codejock but didn't found how I can easy add the own icons and show them on the event line.

Can anyone help me with this issue?
Or give me a simple example code to add and show icons on the event line?

Thank you



Replies:
Posted By: Alex H.
Date Posted: 18 August 2015 at 10:12am
With older XTP-Versions and Office 2007 Theme you could do it like that:

OnEvent_PrePopulate

pCustomIcons = pEvent->GetCustomIcons(); ASSERT(pCustomIcons);

pCustomIcons->AddIfNeed((UINT)IDI_GROUP);  < -  ICON-ID

I used the custom properties of an Event to determine:
pCustomProperties = pEvent->GetCustomProperties();

COleVariant oGroup;
VERIFY(pCustomProperties->GetProperty(_T("Group"), oGroup ));
bGroup = oGroup.boolVal;




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