Print Page | Close Window

Transparent Color on Pushbuttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=13384
Printed Date: 29 June 2025 at 5:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Transparent Color on Pushbuttons
Posted By: RDONNAY
Subject: Transparent Color on Pushbuttons
Date Posted: 10 February 2009 at 11:28pm
I am probably the first person on the forum to post a message related to the Xbase++ language.
There are an increasing number of Code Jock users in the Xbase++ community and many of them come to me for answers.
So here goes.
 
I have an Xbase++ program that uses legacy pushbuttons with bitmaps.
The transparent color is 192,192,192.
This has always worked great with Xbase++.
 
Now when I apply a Skin to my legacy dialogs using the SkinFrameWork control, everything looks great except the buttons containing bitmaps.
The 192,192,192 color shows up in the button rather than showing as transparent.
 
Any ideas on how to solve this problem?
 



Replies:
Posted By: Oleg
Date Posted: 11 February 2009 at 4:46am

Hi,

Please attach screenshot how it looks with /without Skinframework.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Auge_Ohr
Date Posted: 11 February 2009 at 4:52am
hi,
just a Picture to that Problem, but i think it is Xbase++

other Problem is Ownerdraw where Xbase++ GraBackground will allways use "System" Theme (see Button F2)

-------------
greetings by OHR
Jimmy


Posted By: RDONNAY
Date Posted: 11 February 2009 at 11:36am
 
The first screen is the legacy screen.
The second screen is the same screen with the Vista skin applied.
 
Notice the light-gray (192,192,192) border around the image on the pushbutton.
 
Thanks for your reply.
 


Posted By: spiderrider
Date Posted: 11 February 2009 at 4:28pm

You go Roger - can't wait for this xCodejock product to be ready!!!



Posted By: Oleg
Date Posted: 12 February 2009 at 4:57am

Hi,

Think xBase manually convert it icon with system color as transparent color :(
 
You can try our PushButton from Suitecontrols instead.
Also check last release - 12.1 / 13.0 supports application menu skin.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: RDONNAY
Date Posted: 12 February 2009 at 12:39pm
The appeal of a product like Code Jock SkinFramework is that it gives a legacy application a new look with no required code changes.
 
Imagine changing thousands of legacy buttons to using Code Jock buttons.
My customers would find that unacceptable.
 
I could write them a wrapper class that would do this and use the Xbase++ pre-processor to re-route existing code calls to the new class, but I'm not sure at this time that it is worth the effort to solve this kind of problem.
 
Thank you for your reply.
 
Is it possible that using a different color than 192,192,192 would be advised?
 
 
 


Posted By: Oleg
Date Posted: 13 February 2009 at 2:45am
Sorry, dificult to suggest something without any experience with Xbase++. :(  

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Auge_Ohr
Date Posted: 14 February 2009 at 5:05am
hi,
Originally posted by RDONNAY RDONNAY wrote:


I could write them a wrapper class that would do this and use the Xbase++ pre-processor to re-route existing code calls to the new class, but I'm not sure at this time that it is worth the effort to solve this kind of problem.

with Xbase++ SL1 v350 you can use XbpIcon instead of XbpBitmap.

... but you have to seek for :TransparentClr and disable it for Icon while it do not have it.

-------------
greetings by OHR
Jimmy



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net