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
Author
Message
sbre View Drop Down
Groupie
Groupie


Joined: 10 January 2020
Status: Offline
Points: 12
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
Hi,

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;
  otherManager.AddIcons(&myManager);

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,
Sandra
Back to Top
dbrookes View Drop Down
Groupie
Groupie


Joined: 30 August 2019
Location: Australia
Status: Offline
Points: 70
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.
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2020 at 3:29am
Hello,

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.

Regards,
Artem Gontarenko
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.172 seconds.