Print Page | Close Window

CXTComboBox not using system font

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=2716
Printed Date: 08 November 2025 at 9:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTComboBox not using system font
Posted By: craig
Subject: CXTComboBox not using system font
Date Posted: 12 August 2005 at 1:28pm
I have a CXTComboBox control in a CXTPToolbar.  When it displays it uses a rather large non-system font. 


I'm wondering what I'm doing make it look like this, and how I can get it to display with a normal system font like in the pictures on the Codejock website.



I am creating the toolbar and combo box like this:

// Create toolbar and load related resources   VERIFY(CreateToolBar(WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS|CBRS_ GRIPPER, pParentWnd, AFX_IDW_TOOLBAR));
VERIFY(LoadToolBar(IDR_PTEDITOR_TOOLBAR));
SetFlags(xtpFlagStretched);

// create the font combo box.
if (!m_fontCombo.Create( 
    WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_OWNERDRAWFIXED|

    CBS_DROPDOWN|CBS_SORT|CBS_HASSTRINGS|WS_CLIPCHILDREN,
    CRect(5,3,150,250), this, ID_PTEDITOR_FONT ))
{
    TRACE0("Failed to create font combo.\n");
    return false;
}

m_fontCombo.InitControl( "Parksymbol", 285, TRUE );

Thanks for the help!
Craig





Replies:
Posted By: Oleg
Date Posted: 12 August 2005 at 2:26pm

call

m_fontCombo.Initialize(...);

 

if you want to have Office 2003 theme in this combo you can use CXTPControlFontComboBox instead.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: craig
Date Posted: 12 August 2005 at 3:40pm
Originally posted by oleg oleg wrote:

call

m_fontCombo.Initialize(...);

 

if you want to have Office 2003 theme in this combo you can use CXTPControlFontComboBox instead.



Initialize(...) isn't a member of CXTFontCombo?  I'd prefer the Office 2003 theme, but I can't find a Create method for the CXTPControlFontComboBox (which I need because I'm putting it in a Toolbar).


--Craig



Posted By: craig
Date Posted: 13 August 2005 at 2:32am
Originally posted by oleg oleg wrote:

 

if you want to have Office 2003 theme in this combo you can use CXTPControlFontComboBox instead.



I have the CXTPControlFontComboBox working, but it doesn't preview the font styles.  Is this supported in the CXTPControlFontComboBox?

Thanks,
Craig



Posted By: Oleg
Date Posted: 13 August 2005 at 5:18am

No :( In CustomThemes sample you can find how you can extend it.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: craig
Date Posted: 14 August 2005 at 12:13am
Thanks for all the help Oleg.  I'll take a look at the sample and extend it.  :-)

Take Care,
Craig




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