Set Icon |
Post Reply |
Author | |
lion
Groupie Joined: 04 March 2008 Status: Offline Points: 22 |
Post Options
Thanks(0)
Posted: 07 April 2009 at 5:03am |
Hi,
I need some help with Icons and CXTPControlPopup I am creating an menu. The items and icons are fed from an external API. All I get back is a buffer and a size of the icon: /** * Get ProLexis' menu's icon. * This function returns the coordinates of a memory buffer that contains the * icon in PNG format. Please be sure to call PLMK_FreeMenuIcon() when you * have copied the image. * @param[out] buffer The file data. * @param[out] size Size of the buffer. * @return 0 if success, != 0 if failure. */ short PLMK_GetMenuIcon ( void** buffer, long* size ); How can I set, use and display this icon in my CXTPControlPopup ? Thanx in advanced. Cheers B |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, our ImageManager supports PNG without additional libraries. Just replace bitmap to png file in resources.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
lion
Groupie Joined: 04 March 2008 Status: Offline Points: 22 |
Post Options
Thanks(0)
|
Hi,
all I have is a memory buffer that contains the icon in PNG format. How do I instatiate an ImageManager from that? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Convert your memory buffer to bitmap and set it.
|
|
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 |