Print Page | Close Window

CXTColorPicker popup font 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=17029
Printed Date: 17 November 2024 at 12:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTColorPicker popup font problem
Posted By: Jimor Marlow
Subject: CXTColorPicker popup font problem
Date Posted: 29 July 2010 at 9:57am
color picker used in dialog inserted to TaskPanel. All popup font are huge, but in "More Colors" (ColorDlg) all ok. How to set font for popup correctly?



I've tried:
//     m_cpMarker.GetTheme()->SetThemeFont( XTPPaintManager()->GetRegularFont() );

     m_cpMarker.SetFont( XTPPaintManager()->GetRegularFont() );

No any luck. I've even tried to overload OnShowPopup() in clor picker:

void CXTColorPickerEx::OnShowPopup()
     {
          // Get the size of the picker button.
          CRect rcWindow;
          GetWindowRect(&rcWindow);

          // Create the color popup window.
          CXTColorPopup *pColorPopup = new CXTColorPopup(TRUE);

          if (m_pExtendedColors)
          {
               pColorPopup->SetColors(m_pExtendedColors, m_nExtendedColors, m_nCols);
          }


          pColorPopup->Create(rcWindow, this, m_dwPopup, GetColor(), GetDefaultColor());
          pColorPopup->SetFont(XTPPaintManager()->GetRegularFont()); // ADDED, but no differnce
          pColorPopup->SetFocus();
     }



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