Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ImageManager Icons Draw issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ImageManager Icons Draw issue

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


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post Topic: ImageManager Icons Draw issue
    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
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: 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
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post 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
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.195 seconds.