<SOLVED> CheckBox BackColor not transparent |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
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
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
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) |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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)
|
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
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) |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
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 |