Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - PopupControl Background transparency problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PopupControl Background transparency problem

 Post Reply Post Reply
Author
Message
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Topic: PopupControl Background transparency problem
    Posted: 17 August 2012 at 6:39am
Hi all,
While making a nice splashscreen with the PopupControl I ran into a problem with the transparancy of my image and I wanted to share the solution for this problem I got from CodeJock support.
I used this 32 bit alphachannel image as the BackgroundBitmap.
On the splashscreen I added an Item which I wanted to update with the loading process.
Loading Plugins, Loading windows, etc. But with this image the Item was not visible. Codejock Support found out this is a Microsoft problem (http://msdn.microsoft.com/en-us/library/windows/desktop/ms633556(v=vs.85).aspx). There is a workaround. Use a 24 bit image and set the MaskColor to 0xFF00FF (The purple color of this image). The new image:
 
The only thing I had a little struggle with was how to set the MaskColor. I used an ImageManager with the image set at designtime. Setting the MaskColor on the ImageManager.Icons and then adding the icons to the PopupControl.Icons didn't work. But first setting the MaskColor on the PopupControl.Icons
and then adding the ImageManager.Icons to the PopupControl.Icons did work!
 
I also attached a zip file I have send to CodeJock Support which contains the project that reproduces the problem (uploads/6226/SplashScreen1.zip).
 
Hopefully there will be more people who can use this workaround to accomplish a nice splashscreen. :)
 
CodeJock Version used: 15.3.1
 
All images in this post and in the zip file are all copyrighted by Square DMS and cannot by used without permission.
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

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