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
Printed Date: 18 June 2019 at 9:12pm

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

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.



Product: Xtreme Toolkit v 15.3.1, new Projects v 18.5.0
Platform: Windows 8.1 (64bit)
Language: VC+

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
     CXTPModuleHandle(_T("user32.dll")), MAKEINTRESOURCE(0x006a), 
     17, CSize(16,16),xtpImageNormal);

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


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

Print Page | Close Window