![]()  | 
 
CXTTabCtrl problems | 
 
    Post Reply  
   | 
  
| Author | |
   
   gmail  
   
   Groupie  
   Joined: 24 February 2008 Status: Offline Points: 45  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: CXTTabCtrl problemsPosted: 01 January 2009 at 11:05am  | 
 
| 
   
    
   In my CFormView I've implemented CXTTabCtrl control, and in my OnInitialUpdate I set a font like m_tabCtrl.SetFont(font), and it's all working fine. But when I change tab orientation like m_tabCtrl.ModifyTabStyle(0, TCS_BOTTOM) that font is suddenly lost? I also have some icons on those tab buttons but they're drawn perfectly. It seems that font info is kept only in tab upper state (vertical left/right or horizontal bottom doesn't show my font). How to make CXTTabCtrl to work with my font in bottom orientation?
    
   
   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 05 January 2009 at 2:13am | 
 
| 
   
    
   Sorry, CXTTabCtrl always use XTAuxData().font font.  You can try our CXTPTabControl instead.
    
   
   | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   gmail  
   
   Groupie  
   Joined: 24 February 2008 Status: Offline Points: 45  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 05 January 2009 at 1:47pm | 
 
| 
   
    
   So now I've implemented CXTPTabControl and it's generally working fine but I cannot seem to find how to apply that nice texture that CXTTabCtrl had. I've tried 
   
  XTPSkinManager()->EnableThemeDialogTexture(m_tabCtrl.GetSafeHwnd(),ETDT_ENABLETAB); and m_tabCtrl.EnableTabThemeTexture(m_tabCtrl.GetSafeHwnd(), 1); but none of those functions apply texture? How can we achieve this?  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 06 January 2009 at 1:43am | 
 
| 
   
    Hi, Try m_wndTabControl.GetPaintManager()->SetColor(xtpTabColorWinXP); 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   gmail  
   
   Groupie  
   Joined: 24 February 2008 Status: Offline Points: 45  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 07 January 2009 at 2:07pm | 
 
| 
   
    
   I've implemented the above and it's working great. But it seems that my CXTPTabControl doesn't respond to mouse click so I cannot change tabs? I just placed the control onto my CDialog and I'm dynamically rearranging controls on those tabs (so user thinks it's changing tabs, but actually it just CXTPTabControls with its tabs and my own controls on CDialog changing states). How about those mouse clicks?
    
   
   | 
 |
![]()  | 
 |
   
   znakeeye  
   
   Senior Member  
   Joined: 26 July 2006 Status: Offline Points: 1672  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 December 2009 at 3:00am | 
 
| 
   
    No, you need to put this statement in all of your pages' OnInitDialog(): BOOL CMyTabPage::OnInitDialog() 
{ 
    CPropertyPage::OnInitDialog(); 
    XTPSkinManager()->EnableThemeDialogTexture(m_hWnd, ETDT_ENABLETAB); 
    ... 
    | 
 |
![]()  | 
 |
    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  |