Print Page | Close Window

How to make pane caption != tab caption?

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=17271
Printed Date: 28 March 2024 at 9:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to make pane caption != tab caption?
Posted By: MichaelN
Subject: How to make pane caption != tab caption?
Date Posted: 17 September 2010 at 9:06pm
I would like to have a caption in the pane's titlebar but I don't want any text (or not that same text) in the pane's tab. I used pane::SetTitle("mycaption") and it sets both, so then I tried following that with SetTabCaption("") but the tab caption remains "mycaption". Is there a way to do what I want?
 
Michael



Replies:
Posted By: Aaron
Date Posted: 18 September 2010 at 7:02am
Hi,
 
I'm using ActiveX and VB and there's a property .TabCaption
 
So there's a difference between .Title (caption bar) and .TabCaption (when docked in container shown as tabs) maybe you have something simular with MFC...
 
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: MichaelN
Date Posted: 02 October 2010 at 8:51pm
Why no reply from Support on this one? I posted this 2 weeks ago.
 
The methods provided simply do not work. After creatng a pane, I use the returned pointer to set the 2 strings. Try this in one of the sample apps:

CXTPDockingPane* pPane = m_paneManager.CreatePane( foo )

pPane->SetTitle(_T("A"));

pPane->SetTabCaption(_T("BBB"));

When I run the App, I see "A" on the tab. I also get "A" for the pane title. What is SetTabCaption() supposed to do?

In reality, I want only an icon on the tab but a text title on the visible pane. It is not working.


Posted By: MichaelN
Date Posted: 02 October 2010 at 11:43pm
CodeJock developers:
 
You need to change this so it allows empty tab caption strings:


CString CXTPDockingPane::GetTabCaption() const

{

  if (m_strTabCaption.IsEmpty())

    return m_strTitle;

  return m_strTabCaption;

}

 
and also a few other methods that use m_strTabCaption or call GetTabCaption(). At present, (13.4.1) there's no way to have an icon-only tab. I'm setting the caption string to " " as a workaround, but that puts the icon off-center.
 
Michael
 


Posted By: MichaelN
Date Posted: 05 October 2010 at 10:30am
Is this something CodeJock plans to fix in the next version?
 
Michael


Posted By: pate
Date Posted: 05 October 2010 at 3:07pm
"I'm using ActiveX and VB and there's a property .TabCaption"
 
Thanks Aaron, I was not aware that I could use longer names for the pane caption and short ones for the Tabs.  To date, my caption titles have been very short.
 
-Merv


Posted By: MichaelN
Date Posted: 05 October 2010 at 3:13pm
My problem is that CXTDockingPane code explicitly prevents using a zero-length text caption for the tab (see CXTDockingPane code I posted previously). I tried spoofing it using a derived class but it goes deeper than that. I believe this is something CodeJock needs to change for the upcoming version. What are the reasons to support not allowing an icon-only tab?
 
Michael



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