Print Page | Close Window

Changing font in CXTPControlComboBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23389
Printed Date: 05 May 2024 at 3:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing font in CXTPControlComboBox
Posted By: BC2017
Subject: Changing font in CXTPControlComboBox
Date Posted: 19 July 2017 at 6:34pm
I'm not sure where to post this, but is it possible to change text size in CXTPControlComboBox?  I noticed that when doing GetPaintManager()->SetFontHeight(fontHeight); changes the font in all other controls in the Ribbon, but not in the CXTPControlComboBox why?



Replies:
Posted By: olebed
Date Posted: 20 July 2017 at 6:12am
Hello BC2017,

It is because edit part of CXTPControlComboBox drawn with icon font (public CXTPPaintManager::m_fontIcon).  You can change this font to desirable.
XTPPaintManager()->m_fontIcon.SetCustomFont(&lf);

Regards,
 Oleksandr Lebed


Posted By: BC2017
Date Posted: 31 July 2017 at 11:25am
THANK YOU!!!!



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