How to make pane caption != tab caption? |
Post Reply |
Author | |
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
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
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
|
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. |
|
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
|
CodeJock developers:
You need to change this so it allows empty tab caption strings:
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
|
|
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
|
Is this something CodeJock plans to fix in the next version?
Michael
|
|
pate
Groupie Joined: 27 April 2009 Status: Offline Points: 36 |
Post Options
Thanks(0)
|
"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
|
|
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |