Print Page | Close Window

<SOLVED> CheckBox BackColor not transparent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15650
Printed Date: 27 April 2024 at 2:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: <SOLVED> CheckBox BackColor not transparent
Posted By: chrisABC
Subject: <SOLVED> CheckBox BackColor not transparent
Date Posted: 17 November 2009 at 11:21am
I have put some CJ controls onto a CJ TabControl.
I set the Labels and CheckBoxes and RadioButtons   .Transparent = True.

The Label correctly goes transparent (and shows backcolor of Tab page).
But the CheckBox and RadioButton do not go transparent -- they just show grey background (color of Form?)

How can I get CheckBox and RadioButton to appear transparent?
(I could set their  .BackColor   but I can't find a BackColor property for the Tab Page -- I have set OneNote Colors)



SOLUTION:  (work around)

    chkBox.Transparent = False
    chkBox.BackColor = Tab1(x).color

                where x  is the Tab Page containing the chkBox.



-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: Aaron
Date Posted: 17 November 2009 at 1:22pm
Hi Chris,
 
Take a look at post https://forum.codejock.com/forum_posts.asp?TID=11379 - https://forum.codejock.com/forum_posts.asp?TID=11379
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Lodep59
Date Posted: 20 November 2009 at 12:26pm
Just add as tabcontrolpage on the tabcontrol and add checkbox into this tabcontrolpage.
Transparency is managed for controls only in TabControlPages (see CJ sample for Controls).


-------------
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate
Language: VB6 SP6 (FR)


Posted By: chrisABC
Date Posted: 21 November 2009 at 4:05am
I added tabcontrolpage and now the checkbox shows the color of the tabcontrolpage.

BUT how do I get tabcontrolpage to show color of the Tab ??

I have set Tab to use One Note Colors.
Is there a Tab property that will give me the background color of each Tab ?  (I can't find it)



Originally posted by Lodep59 Lodep59 wrote:

Just add as tabcontrolpage on the tabcontrol and add checkbox into this tabcontrolpage.
Transparency is managed for controls only in TabControlPages (see CJ sample for Controls).


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Lodep59
Date Posted: 21 November 2009 at 1:18pm

Hello,

You'll not have the problem with "standard tab" themes (like xp or office 2007).
The tabcontrolpage when onenotecolor = true seems to always be grey.
Not sure but you'll certainly find the color in the paintmanager colorset.
 
 


-------------
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate
Language: VB6 SP6 (FR)


Posted By: chrisABC
Date Posted: 22 November 2009 at 3:52pm
I found a way to get the ChkBox to have same BackColor as the TabControl page


    chkBox.Transparent = False
    chkBox.BackColor = Tab1(x).color

                where x  is the Tab Page containing the chkBox.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



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