Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTabControl:close all tabs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabControl:close all tabs

 Post Reply Post Reply
Author
Message
spelhatre View Drop Down
Newbie
Newbie


Joined: 09 January 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote spelhatre Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabControl:close all tabs
    Posted: 07 February 2006 at 10:45am
Hi,
With FindNavigateButton( xtpTabNavigateButtonClose) I can use close button (simple cross) to manage closing on 1 tab.
But is there a way to manage closing of all tabs ( with another button with a double cross for example) ?
thanks
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 07 February 2006 at 1:58pm

Yes, you can

1. ovreride CXTPTabManagerNavigateButton

2. override its DrawEntry to draw double cross

3. override its OnExecute adn call m_pManager->DeleteAllItems();

 

add new button with

.GetNavigateButtons().Add(new CNavigateButtonCloseAll(this, xtpTabNavigateButtonAlways));

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
spelhatre View Drop Down
Newbie
Newbie


Joined: 09 January 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote spelhatre Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2006 at 4:55am
Thanks Oleg, it works fine.
Perhaps it would be nice to add in a next release the "close all" button.
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.031 seconds.