Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Alpha colors in controls
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Alpha colors in controls

 Post Reply Post Reply
Author
Message
ddebono View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Location: Norway
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddebono Quote  Post ReplyReply Direct Link To This Post Topic: Alpha colors in controls
    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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2011 at 2:55pm
Try this instead:


Set Me.cmdSupport.Icon = ImageManager1.Icons.GetImage(1, 48)


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

Back to Top
ddebono View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Location: Norway
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddebono Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2011 at 6:37pm
Hi!

It worked like a charm!

Thanks...
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2011 at 10:44pm
Great! Glad to help.
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

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.156 seconds.