Print Page | Close Window

Force tab visible

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=7066
Printed Date: 02 July 2024 at 10:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Force tab visible
Posted By: JamesH
Subject: Force tab visible
Date Posted: 07 May 2007 at 1:41pm
I have a command that causes a variable number of panes (displaying photos) to become tabbed.  After the panes are tabbed I would like to be able to force the selected panes tab to be visible.  How do I do this?
 
I was going to post images to show what I mean, but that function doesn't seem to be enabled on the forum any more.
 
Cheers,
- James



Replies:
Posted By: Oleg
Date Posted: 08 May 2007 at 6:55am
Hello,
 
Just use ShowPane method - it will show and activate pane.


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


Posted By: JamesH
Date Posted: 08 May 2007 at 1:25pm
Hello Oleg,
 
Thanks for the response.  I already use ShowPane, the pane is active but the tab isn't displayed because I'm using xtpTabLayoutAutoSize.
 
Ahh, I see image attachment works again, that's great.  Here is what I mean. 
 
This is what I get: 
 
 
This is what I want:
 
 
I've also attached a modification to the WTL docking pane sample that shows the problem.  If you run the sample and go to 'About...' it will tab all the panes programatically and try to make the active panes tab visible but it doesn't work.
 
Any suggestions would be appricated.
 
Cheers,
- James
 
(Sample, source and compiled .exe)
https://forum.codejock.com/uploads/20070508_132431_WTLSampleview.zip - uploads/20070508_132431_WTLSampleview.zip


Posted By: Zach
Date Posted: 09 May 2007 at 1:03pm
one thing I have been able to do to cope with that is to:
 
1 freeze drawing
2 close the pane
3 open the pane
4 un-freeze drawing/refresh if need be
 
(far from perfect... as the tab is now the last tab)
 
 



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