How to show navigate button in tab header area?
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=16674
Printed Date: 31 January 2025 at 5:03am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: How to show navigate button in tab header area?
Posted By: sunyang
Subject: How to show navigate button in tab header area?
Date 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
|
Replies:
Posted By: elmue
Date 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);
|
|