Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Transparent Color on Pushbuttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Transparent Color on Pushbuttons

 Post Reply Post Reply
Author
Message
RDONNAY View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2009
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote RDONNAY Quote  Post ReplyReply Direct Link To This Post Topic: Transparent Color on Pushbuttons
    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?
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2009 at 4:46am

Hi,

Please attach screenshot how it looks with /without Skinframework.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Auge_Ohr View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auge_Ohr Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
RDONNAY View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2009
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote RDONNAY Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
spiderrider View Drop Down
Newbie
Newbie
Avatar

Joined: 11 February 2009
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote spiderrider Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2009 at 4:28pm

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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
RDONNAY View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2009
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote RDONNAY Quote  Post ReplyReply Direct Link To This Post 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?
 
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2009 at 2:45am
Sorry, dificult to suggest something without any experience with Xbase++. :(  
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Auge_Ohr View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auge_Ohr Quote  Post ReplyReply Direct Link To This Post 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
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.