Print Page | Close Window

CalendarControl using ImageManager for MarkUp

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=23207
Printed Date: 27 April 2024 at 12:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CalendarControl using ImageManager for MarkUp
Posted By: TShriver
Subject: CalendarControl using ImageManager for MarkUp
Date Posted: 21 November 2016 at 5:14pm
I am unable to get an image from an ImageManager control to show up in the Markup for a Calendar event.  I am able to add a CalendarEvent to the Calendar and have the markup displayed correctly with the exception of an icon. 

The help file references setting the source to the icon id of the ImageManager.  I have the ImageManager loaded with icons with id 1 through 16.  the markup source includes the following line:

<image source='1'/>

With other controls you need to load the icons like with the commandbar.  but with the calendar control there is no method to load icons...

Am I missing something???

Thank you in Advance,

Tim



Replies:
Posted By: cpede
Date Posted: 22 November 2016 at 3:27am
I'm doing something like this:

XTPImageManager()->SetIconFromResource(
     CXTPModuleHandle(_T("imageres.dll")), MAKEINTRESOURCE(105), 25,
     CSize(32,32), xtpImageNormal);

<Image  Source='25'/>

-cpede


-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



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