Print Page | Close Window

How to change font for CXTFlatComboBox

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=3786
Printed Date: 10 November 2025 at 3:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change font for CXTFlatComboBox
Posted By: Maneesh
Subject: How to change font for CXTFlatComboBox
Date Posted: 16 March 2006 at 1:02am

Hi

I create a custom combo in my toolbar.The combo style is DROPDOWNLIST.When I type in charecters in the combo the charecters appear in BOLD style nad the size of charecters is bigger.I donot want the charecters to be in BOLD style.How do I change the style of the combo.I looked into the samples but I couldnt get any solutions. Below is the code by which I create the COMBO

 CXTPToolBar* pToolBar = lpCreateControl->bToolBar? DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl->pCommandBar): NULL;

 if (  pToolBar )
 {
  if ( pToolBar->GetBarID() == IDR_BUTTONS_TOOLBAR )
  {
   switch (lpCreateControl->nID )
   {
   case ID_TOOLBAR_SMART_COMBO:
    {
     m_cmbSmartCombo.Create( CBS_AUTOHSCROLL | CBS_DROPDOWN|WS_TABSTOP | WS_CHILD | WS_VISIBLE  , CRect( 0 ,0 , 175, 25) , this , ID_SMARTLOOKUP_COMBO );
     CXTPControlCustom* pControlDestComboBox = CXTPControlCustom::CreateControlCustom(&m_cmbSmartCombo) ;
     lpCreateControl->pControl = pControlDestComboBox;
     lpCreateControl->buttonStyl e = xtpButtonAutomatic;
     return TRUE;
    }
   }
  }
 }

m_cmbSmartCombo is an object of CPxFlatComboBox which is derived from CXTFlatComboBox.

Also I dont get the flat look for the combo when I do it in this way.How do I get the flat look for the combo.

Any thoughts on this.

Expecting a reply ASAP.

Regards

Ganapathi




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