Print Page | Close Window

HOWTO: Use ImageList icons in markup?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23729
Printed Date: 24 April 2024 at 6:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO: Use ImageList icons in markup?
Posted By: mgampi
Subject: HOWTO: Use ImageList icons in markup?
Date Posted: 26 September 2018 at 1:51pm
Hi;

How can I use icons of an assigned CImageList in a report control to show in markup items of individual records?
Therefore, after calling CXTPReportControl::SetImageList(&ImagList), I want to use those images inside markup code of report record items.

TIA


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: cpede
Date Posted: 03 October 2018 at 7:04am
Not really solves your problem directly, but what you can do is:

// add image to image manager using id 17
XTPImageManager()->SetIconFromResource(
     CXTPModuleHandle(_T("user32.dll")), MAKEINTRESOURCE(0x006a), 
     17, CSize(16,16),xtpImageNormal);

// use image in markup with id 17
<Image Source = '17' HorizontalAlignment='Center'/>

-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