Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - <SOLVED> CheckBox BackColor not transparent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

<SOLVED> CheckBox BackColor not transparent

 Post Reply Post Reply
Author
Message
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: <SOLVED> CheckBox BackColor not transparent
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2009 at 1:22pm
Hi Chris,
 
 
 
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....
Back to Top
Lodep59 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 03 April 2008
Status: Offline
Points: 203
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lodep59 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Lodep59 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 03 April 2008
Status: Offline
Points: 203
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lodep59 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
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.141 seconds.