PopupControl Background transparency problem |
Post Reply |
Author | |
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
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 |
|
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 |