Print Page | Close Window

CXTPColorPicker Border and Margin Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23436
Printed Date: 28 March 2024 at 5:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPColorPicker Border and Margin Problem
Posted By: cpede
Subject: CXTPColorPicker Border and Margin Problem
Date Posted: 01 September 2017 at 2:31am
If I uses "normal" settings for the CXTPColorPicker control, it all looks fine:

m_ctrlGridColor.SubclassDlgItem(IDC_PROP_GRAPHGRID_COLOR, this);
m_ctrlGridColor.SetTheme(xtpControlThemeOffice2013);
m_ctrlGridColor.SetStandardColors();
m_ctrlGridColor.SetDefaultColor(GetSysColor(COLOR_WINDOW));
m_ctrlGridColor.ShowCaptions(TRUE);



But, if I start removing some of the information and text, the margins - especially the bottom margin - becomes too large:

m_ctrlGridColor.SubclassDlgItem(IDC_PROP_GRAPHGRID_COLOR, this);
m_ctrlGridColor.SetTheme(xtpControlThemeOffice2013);
m_ctrlGridColor.ModifyCPStyle(CPS_XTP_MORECOLORS, CPS_XTP_NOAUTOMATIC);
m_ctrlGridColor.SetStandardColors();
m_ctrlGridColor.SetDefaultColor(GetSysColor(COLOR_WINDOW));
m_ctrlGridColor.ShowCaptions(FALSE);



Another strange thing is the borders around each color. There is a gab in the right side of the border, also when removing CPS_XTP_COLORBORDERS:



-cpede


-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: cpede
Date Posted: 04 September 2017 at 2:00am
No comments from CJ?

It would really be nice if you could make the following controls look the same:
  • The CXTPControlPopupColor and CDXXTPControlColorSelector used in popup menus.
  • The CXTPColorPicker used for dialog buttons.
  • The CGalleryItemFontColor used in the RibbonControls sample for Ribbon gallery.
-cpede


-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: cpede
Date Posted: 22 November 2017 at 3:38am
Still a problem in v18.2.0:



-cpede


-------------
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



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