Print Page | Close Window

ImageManager Icons Draw issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=17126
Printed Date: 06 October 2024 at 7:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ImageManager Icons Draw issue
Posted By: Hemesh
Subject: ImageManager Icons Draw issue
Date Posted: 18 August 2010 at 5:52am
Hi guys,

I've got an imagemanager full of ICON images. I want to dyamically set the Form Icon to one from the image manager, so I therefore do: -

Me.Icon = ImageManager1.Icons.GetImage(1, 16).CreatePicture(xtpImageNormal)

It does display the image, but it appears to have lost it's transparency of the Icon?!?! I've tried setting the Mask Colour to black, but I still get a horrible black border around the icons. I was hoping that it behaved similar to VB's ImageList whereby it extracts the image in the original format it was stored in, but it looks like it's converting it to a Bitmap :(

Is there a different line of code i'm missing, or can a feature be added to the control to extract the image in the orignal colour like it does when it's linked to a ReportControl for instance?



-------------
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0



Replies:
Posted By: Oleg
Date Posted: 18 August 2010 at 7:38am
yes, to support all operation systems we store Alpha icons as bitmap. old OSes didn't support alpha icons.

You can set normal - not alpha icon for your form.

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


Posted By: Hemesh
Date Posted: 18 August 2010 at 10:09am
Is there a way to restore them as transparent icons so they can be used for form icons, etc like the report control utilises them? As there are booleans to check for Alpha ICONs for the control anyway, it seems logical?

Thanks,


-------------
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0



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