CXTColorPicker popup font problem |
Post Reply |
Author | |
Jimor Marlow
Groupie Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
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(); } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |