![]()  | 
 
Shortcutbar font change ? | 
 
    Post Reply  
   | 
  
| Author | |
   
   kanitamildasan  
   
   Senior Member  
   Joined: 01 February 2006 Status: Offline Points: 102  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Shortcutbar font change ?Posted: 07 March 2009 at 4:49am  | 
 
| 
   
    
   Hi, How to change the fonts of red-marked items for all supported themes ? 
   
   | 
 |
![]()  | 
 |
   
   kanitamildasan  
   
   Senior Member  
   Joined: 01 February 2006 Status: Offline Points: 102  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 09 March 2009 at 1:00am | 
 
| 
   
    
   Hi, I derived from CXTPShortcutBarOffice2003Theme and overrided the RefreshMetrics. 
   
  void MYShortCutBarPaintManager::RefreshMetrics() { CXTPShortcutBarOffice2003Theme::RefreshMetrics(); LOGFONT lf1,lf2,lf3; m_fntPaneCaption.GetLogFont(&lf1); m_fntPaneItemCaption.GetLogFont(&lf2); m_fntText.GetLogFont(&lf3); _tcscpy(lf1.lfFaceName,_T("MY FONT")); _tcscpy(lf2.lfFaceName,_T("MY FONT")); _tcscpy(lf3.lfFaceName,_T("MY FONT")); m_fntPaneCaption.DeleteObject(); m_fntPaneItemCaption.DeleteObject(); m_fntText.DeleteObject(); m_fntPaneCaption.CreateFontIndirect(&lf1); m_fntPaneItemCaption.CreateFontIndirect(&lf2); m_fntText.CreateFontIndirect(&lf3); } Is this the right way to do it ?  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 09 March 2009 at 2:56am | 
 
| 
   
    
   Hi,
 
   
  Yes, its best way to change it. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   kanitamildasan  
   
   Senior Member  
   Joined: 01 February 2006 Status: Offline Points: 102  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 09 March 2009 at 3:21am | 
 
| 
   
    
   I just wondered, it didnt come with some kind of SetXXXMethods() (ex SetPaneCaptionFont()) 
   
  Thanks oleg ![]()  | 
 |
![]()  | 
 |
    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  |