![]() |
CXTComboBox not using system font |
Post Reply
|
| Author | |
craig
Groupie
Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTComboBox not using system fontPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
craig
Groupie
Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 August 2005 at 3:40pm |
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 |
|
![]() |
|
craig
Groupie
Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 August 2005 at 2:32am |
I have the CXTPControlFontComboBox working, but it doesn't preview the font styles. Is this supported in the CXTPControlFontComboBox? Thanks, Craig |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
craig
Groupie
Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |