Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to make pane caption != tab caption?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to make pane caption != tab caption?

 Post Reply Post Reply
Author
Message
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Topic: How to make pane caption != tab caption?
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2010 at 10:30am
Is this something CodeJock plans to fix in the next version?
 
Michael
Back to Top
pate View Drop Down
Groupie
Groupie


Joined: 27 April 2009
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote pate Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post 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
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.