Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTColorPicker popup font problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTColorPicker popup font problem

 Post Reply Post Reply
Author
Message
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post Topic: CXTColorPicker popup font problem
    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();
     }
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.157 seconds.