Alpha colors in controls |
Post Reply |
Author | |
ddebono
Groupie Joined: 02 August 2005 Location: Norway Status: Offline Points: 31 |
Post Options
Thanks(0)
Posted: 05 April 2011 at 2:39pm |
Hi!
We are trying to use icons (.ico/.png) with alpha colors in VB6. We are using the Pushbutton control, and the ImageManager control. Code: Set cmdSupport.Picture = ImageManager1.Icons.GetImage(1, 48).CreatePicture(xtpImageNormal) The picture on the PushButton will be the icon, but with a black background instead on a transparent. The same thing with both .ico and .png files. We know that the .ico file is working since we have tested it on the Windows 7 desktop. And the ImageManager shows them with transparent background. It works with 24 bit icons, but not with alpha. Is this supposed to work ? And will alpha work on the commandbar ? We are using version 12.0.1 and upgrading the control is NOT an option. Please help, David |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
Try this instead:
I haven't tested with 12.0.1 though, so I don't know if alpha is supported with that version. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
ddebono
Groupie Joined: 02 August 2005 Location: Norway Status: Offline Points: 31 |
Post Options
Thanks(0)
|
Hi!
It worked like a charm! Thanks... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
Great! Glad to help.
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
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 |