Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTComboBox not using system font
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTComboBox not using system font

 Post Reply Post Reply
Author
Message
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post Topic: CXTComboBox not using system font
    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


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post 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



Edited by craig
Back to Top
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post 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

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.043 seconds.