Print Page | Close Window

Too dark color used in flat toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23343
Printed Date: 24 November 2024 at 9:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Too dark color used in flat toolbar
Posted By: mgampi
Subject: Too dark color used in flat toolbar
Date Posted: 23 May 2017 at 7:01am
Hello;

I use a toolbar in a dialog and create it as streched and with no border using black office 2010 theme:
  CXTPCommandBars* CommandBars = GetCommandBars();
  CommandBars->SetTheme(xtpThemeResource);
  Toolbar_.SetCommandBars(CommandBars);
  VERIFY(Toolbar_.CreateToolBar(WS_TABSTOP|WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, this));
  VERIFY(Toolbar_.LoadToolBar(IDR_TOOLBAR));
  Toolbar_.ShowExpandButton(FALSE);
  Toolbar_.SetFlags(xtpFlagAlignTop|xtpFlagStretched|xtpFlagNoBorders);


The toolbar background is almost as dark as the labels. Therefor it's hard to read them!



When I remove the xtpFlagNoBorder flag the background is lighter and the colors differ much better. But without the flag the edges look ugly inside my dialog box:



I want to get the background as drawn in the second screenshot, but with the overall appearance as in the first screenshot. Is this a bug or not?

How?

TIA




-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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