Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - HOWTO: Use ImageList icons in markup?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOWTO: Use ImageList icons in markup?

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1059
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: HOWTO: Use ImageList icons in markup?
    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+
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Status: Offline
Points: 541
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.080 seconds.