External image resources in Markup |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 647 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 647 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Markup always check first global ImageManager:
XTPImageManager() - singleton returns global imagemanager.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |