Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - External image resources in Markup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

External image resources in Markup

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: External image resources in Markup
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.125 seconds.