Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - HOWTO: Use CXTPGridControl::m_pImageManager XAML
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOWTO: Use CXTPGridControl::m_pImageManager XAML

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

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: HOWTO: Use CXTPGridControl::m_pImageManager XAML
    Posted: 10 March 2024 at 12:52pm
Hi;

I just recognized that the CXTPGridControl internal image manager is not used in XAML for items/headers of the grid control.
I have to add all images to the global image manager.
This conflicts in several applications of our software suite because of duplicate image IDs that cannot be changed easily.

Therefore, how can we use the grids internal image manager in XAML code that is used exclusively in the grid(s).

As a simplified example within a CXTPGridControl derived class, this works
  uint32_t Images[] = { STATE_ARTICLEGROUP_ACTIVE, STATE_ARTICLEGROUP_INACTIVE };
  VERIFY(XTPImageManager()->SetIcons(IDB_ARTICLEGROUP_IMAGES, Images, _countof(Images), CSize(16, 16)));
but this not
  uint32_t Images[] = { STATE_ARTICLEGROUP_ACTIVE, STATE_ARTICLEGROUP_INACTIVE };
  VERIFY(GetImageManager()->SetIcons(IDB_ARTICLEGROUP_IMAGES, Images, _countof(Images), CSize(16, 16)));


TIA
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.