Print Page | Close Window

CXTTabCtrl problems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13053
Printed Date: 16 November 2024 at 8:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTabCtrl problems
Posted By: gmail
Subject: CXTTabCtrl problems
Date Posted: 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?



Replies:
Posted By: Oleg
Date 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


Posted By: gmail
Date 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?


Posted By: Oleg
Date Posted: 06 January 2009 at 1:43am

Hi,

 
Try m_wndTabControl.GetPaintManager()->SetColor(xtpTabColorWinXP);


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


Posted By: gmail
Date 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?


Posted By: znakeeye
Date 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);
    ...



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