Print Page | Close Window

Task Panel Gradient Colors

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=4012
Printed Date: 24 November 2024 at 1:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Task Panel Gradient Colors
Posted By: DDJJ
Subject: Task Panel Gradient Colors
Date 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!

 




Replies:
Posted By: Oleg
Date Posted: 18 April 2006 at 1:03pm

Hi,

there was secret constant added:

.ColorSet.NormalGroupClient = &H1FFFFFFF



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: apuhjee
Date 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.


Posted By: DDJJ
Date 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




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