Print Page | Close Window

External image resources in Markup

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=10851
Printed Date: 28 April 2024 at 1:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: External image resources in Markup
Posted By: cpede
Subject: External image resources in Markup
Date Posted: 31 May 2008 at 1:50pm
How do I reference an image resource in another DLL? It would be nice to be able to write something like: "res:my.dll:image.bmp" ?
 
Can I change the resource handle for the control, a TaskDialog ?
 
Can I attach an ImageManager for a TaskDialog ?
 
Maybe a sub-forum for markup questions would be a good idea ?
 
-cpede



Replies:
Posted By: Oleg
Date Posted: 02 June 2008 at 1:30am
Hi,
 
Just load this bitmap to CXTPImageManager
 
XTPImageManager()->SetIcons(...);
 
and in markup enter <Image Source="4" />
where "4" is id of image in XTPImageManager


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cpede
Date Posted: 02 June 2008 at 2:48am
But how do I combine the CXTPImageManager with the Markup I make. I do some Markup for a task dialog, and I don't believe that this has an internal image manager, like e.g. the list?
 
-cpede


Posted By: Oleg
Date Posted: 02 June 2008 at 9:39am
Hi,
Markup always check first global ImageManager:
 
XTPImageManager()  - singleton returns global imagemanager.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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