Home » Developing U++ » UppHub » TabBar. Uninitialized member
Re: TabBar. Uninitialized member [message #21445 is a reply to message #21444] |
Wed, 20 May 2009 16:56   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Quote: | I am using TabBar for opening files. To manage them I need full path but I would like to put in tab String only the file name.
Now as far as I know this is not possible so I have to put the full path in the tab String.
|
Actually, in the current SVN version what you want to do is pretty easy. You have three choices:
- Use a Display (will only work properly for a top-aligned TabBar, but that is almost all cases)
- Inherit and overload ParseLabel
- Inherit and overload PaintTabData (this is intended for more complex scenarios requiring left/right/bottom alignment support).
I would suggets using a Display, as I would personally like to get rid of ParseLabel. The Bazaar/QuickTabsTest/FileTabs class is an example of using the TabBar to implement TheIde QuickTabs. It also uses tab stacking and used the third method of Paint overloading to display additional stacking info.
Having said all of that, I actually agree with you. Up until now the package has largely been the result of just adding what myself and Unodgs needed on top of his original QuickTabs class without discussion since we didn't know anyone else was using it. Perhaps we should have that discussion now so we can tidy it up some? I'm happy to do some work on it next week (off to the Monacco GP in the meantime ), and maybe even write some docs. But I'd like Uno's input before I start since I know he's using the TabBar in an Ide branch at the moment. I'll PM him.
Any other feature requests while we're at it?
Edit: And apologies to Mindtraveller for missing his posts before, the bug has been noted and fixed
[Updated on: Wed, 20 May 2009 17:06] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 04 00:01:35 CEST 2025
Total time taken to generate the page: 0.02755 seconds
|