Print Page | Close Window

Set Icon

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=13943
Printed Date: 22 June 2025 at 9:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set Icon
Posted By: lion
Subject: Set Icon
Date 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



Replies:
Posted By: Oleg
Date Posted: 08 April 2009 at 12:47am

Hi,

our ImageManager supports PNG without additional libraries. Just replace bitmap to png file in resources.


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


Posted By: lion
Date Posted: 09 April 2009 at 3:11am
Hi,
all I have is a memory buffer that contains the icon in PNG format.
How do I instatiate an ImageManager from that?


Posted By: Oleg
Date Posted: 09 April 2009 at 3:36am
Hi,
 
Convert your memory buffer to bitmap and set it.
 


-------------
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