Print Page | Close Window

How can I select and selected font?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6000
Printed Date: 04 March 2025 at 3:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I select and selected font?
Posted By: scs7309
Subject: How can I select and selected font?
Date Posted: 05 January 2007 at 4:48am
I attached CXTPControlFontComboBox object my Toolbar control.
Here is my question !!!
How can I select specific font when my program starting ?
and how can I selected font name when user selecting font ?
Sorry my poor english : )
 
 
int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{
 CXTPToolBar* pToolBar = lpCreateControl->bToolBar? DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl->pCommandBar): NULL;
 if (lpCreateControl->nID == ID_COMBO_FONTNAME && pToolBar && pToolBar->GetBarID() == IDR_MAINFRAME)
 {
  CXTPControlComboBox* pComboFont = new CXTPControlFontComboBox();
  pComboFont->SetDropDownListStyle(FALSE);
  lpCreateControl->pControl = pComboFont;
  return TRUE;
 }
 
 return FALSE;
}



Replies:
Posted By: Oleg
Date Posted: 05 January 2007 at 8:52am
Hi,
 
See Samples\UserInterface\GUI_OneNote  sample


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


Posted By: scs7309
Date Posted: 07 January 2007 at 11:51pm
thanks ~ : )



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