Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPColorPicker Border and Margin Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPColorPicker Border and Margin Problem

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


Joined: 13 August 2004
Status: Offline
Points: 538
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: CXTPColorPicker Border and Margin Problem
    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 (18.0.1)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Status: Offline
Points: 538
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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 (18.0.1)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Status: Offline
Points: 538
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2017 at 3:38am
Still a problem in v18.2.0:



-cpede
Product: Xtreme ToolkitPro (18.0.1)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.086 seconds.