Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to show navigate button in tab header area?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to show navigate button in tab header area?

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


Joined: 08 May 2010
Location: China
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sunyang Quote  Post ReplyReply Direct Link To This Post Topic: How to show navigate button in tab header area?
    Posted: 08 May 2010 at 2:30am
How to show navigate button in the tab header area when I use docking pane? There is style is xtpTabLayoutAutoSize, it can show navigate button automatically ,but I want the navigate button always show.
Thanks
Back to Top
elmue View Drop Down
Groupie
Groupie


Joined: 05 June 2010
Location: Germany
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote elmue Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2010 at 11:50am
It depends on what Tab control you use.

For CXTPTabClientWnd you have these options:

enum XTPWorkspaceButtons
{
    xtpWorkspaceHideArrows = 1,             // To hide arrow buttons.
    xtpWorkspaceHideClose = 2,              // To hide close button.
    xtpWorkspaceHideAll = 3,                // To hide arrow and close buttons.
    xtpWorkspaceShowActiveFiles = 4,        // To show active file button.
    xtpWorkspaceHideArrowsAlways = 1 + 8,   // To hide arrow buttons always
    xtpWorkspaceShowCloseTab = 16,          // To show close button for all tabs.
    xtpWorkspaceShowCloseSelectedTab = 32,  // To show close button for selected tabs.
};


For CXTPTabControl use:
i_TabControl.FindNavigateButton(xtpTabNavigateButtonLeft) ->SetFlags(xtpTabNavigateButtonAlways);
i_TabControl.FindNavigateButton(xtpTabNavigateButtonRight)->SetFlags(xtpTabNavigateButtonAlways);
i_TabControl.FindNavigateButton(xtpTabNavigateButtonClose)->SetFlags(xtpTabNavigateButtonAlways);

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.156 seconds.