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: 10 December 2018 at 9:39pm


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 15.3.1, new Projects v 18.5.0
Platform: Windows 8.1 (64bit)
Language: VC+



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 (18.0.1)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Print Page | Close Window