Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [SOLVED] CXTPImageManager - Vector Icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] CXTPImageManager - Vector Icons

 Post Reply Post Reply
sbre View Drop Down

Joined: 10 January 2020
Status: Offline
Points: 11
Post Options Post Options   Thanks (1) Thanks(1)   Quote sbre Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] CXTPImageManager - Vector Icons
    Posted: 04 March 2020 at 9:37am

I am using CXTPImageManager with VectorIcons, now I want to add all of my (vector) icons from one CXTPImageManager to another therefore I use:

  CXTPImageManager myManager;
  // add Vector icons to myManager

  CXTPImageManager otherManager;

Here an assert, that the type of the copy-destination icon (= RasterIcon) and the copy-source icon (=VectorIcon) do not match, gets triggered and therefore none of my vector icons get copied to otherManager.

Could you please fix this or does anyone know another way how to copy (vector-)icons from one CXTPImageManager to another?

Thanks in advance. :)
Best regards,
Back to Top
dbrookes View Drop Down

Joined: 30 August 2019
Location: Australia
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbrookes Quote  Post ReplyReply Direct Link To This Post Posted: 08 March 2020 at 8:28pm
Can confirm this issue in v19.1 release.

It looks like the constructor for CXTPImageManagerIcon with width and height arguments uses type RasterIcon by default. The copy doesn't do anything since the icon types mismatch.

It should be possible to work around it by manually populating the new image manager, but that's not nice.
Product: Xtreme ToolkitPro (19.1.0)
Platform: Windows 10
Language: Visual Studio 2019 (C++)
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group

Joined: 25 March 2016
Status: Offline
Points: 136
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: Yesterday at 3:29am

I'm glad to inform you that the issue has been addressed and fixed.
The fix will be available in the next beta or final release.

Artem Gontarenko
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.078 seconds.