Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Task Panel Gradient Colors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Task Panel Gradient Colors

 Post Reply Post Reply
Author
Message
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Topic: Task Panel Gradient Colors
    Posted: 16 April 2006 at 3:25pm

I had thought I would be able to use a color gradient for the task panel with 10.1, but it doesn't appear to be working.  Drop the following code into your Task Panel VB6 sample (at the end of the Form_Load event), and you'll see what I mean:

   With wndTaskPanel
        .VisualTheme = xtpTaskPanelThemeToolboxWhidbey
        .Behaviour = xtpTaskPanelBehaviourExplorer
        .HotTrackStyle = xtpTaskPanelHighlightItem
        .ItemLayout = xtpTaskItemLayoutImagesWithText
        .SelectItemOnFocus = True
        .SingleSelection = True
        .ColorSet.BackgroundDark = 15001834
        .ColorSet.BackgroundLight = &H80000016
        .ColorSet.HighlightBorderBottomRight = 6956042
        .ColorSet.HighlightBorderTopLeft = 6956042
        .ColorSet.HighlightHot = 13811126
        .ColorSet.HighlightPressed = 11899525
        .ColorSet.HighlightSelected = 14210516
        .ColorSet.NormalGroupClient = 15001834
        .ColorSet.NormalGroupClientBorder = 13160660
        .ColorSet.NormalGroupClientLink = 0
        .ColorSet.NormalGroupClientLinkHot = 16711680
        .ColorSet.NormalGroupClientLinkSelected = 0
        .ColorSet.NormalGroupClientText = 0
        .ColorSet.NormalGroupCaptionDark = &H80000014
        .ColorSet.NormalGroupCaptionLight = &H80000016
        .ColorSet.SpecialGroupClient = 15001834
        .ColorSet.SpecialGroupClientBorder = 13160660
        .ColorSet.SpecialGroupClientLink = 0
        .ColorSet.SpecialGroupClientLinkHot = 16711680
        .ColorSet.SpecialGroupClientLinkSelected = 0
        .ColorSet.SpecialGroupClientText = 0
    End With

Although the Backcolor works correctly, the client areas do not "blend" in with the background.  Can anybody see what I'm doing wrong here?

Thanks!

 

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: 18 April 2006 at 1:03pm

Hi,

there was secret constant added:

.ColorSet.NormalGroupClient = &H1FFFFFFF

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2006 at 10:10pm
Any other "secrets" we should know about?

Cheers ~ jp
I like mathematics because it is not human and has nothing particular
to do with this planet or with the whole accidental universe — because,
like Spinoza's God, it won't love us in return.
Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2006 at 10:20pm

LOL.

I had thought to respond with the same comment, but I really like Oleg's "understated" approach!

Cheers, Dan

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.