Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Changing font in CXTPControlComboBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing font in CXTPControlComboBox

 Post Reply Post Reply
Author
Message
BC2017 View Drop Down
Newbie
Newbie


Joined: 19 July 2017
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote BC2017 Quote  Post ReplyReply Direct Link To This Post Topic: Changing font in CXTPControlComboBox
    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?
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
BC2017 View Drop Down
Newbie
Newbie


Joined: 19 July 2017
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote BC2017 Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2017 at 11:25am
THANK YOU!!!!
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.125 seconds.