Print Page | Close Window

[SOLVED] CXTPImageManager - Vector Icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23965
Printed Date: 22 December 2024 at 5:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] CXTPImageManager - Vector Icons
Posted By: sbre
Subject: [SOLVED] CXTPImageManager - Vector Icons
Date 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



Replies:
Posted By: dbrookes
Date 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.


Posted By: agontarenko
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net