Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTTabCtrl problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTabCtrl problems

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: CXTTabCtrl problems
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2009 at 1:43am

Hi,

 
Try m_wndTabControl.GetPaintManager()->SetColor(xtpTabColorWinXP);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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);
    ...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.186 seconds.