TabBarGadget - Tabs like in a browser

Share your advanced PureBasic knowledge/code with the community.
deeproot
Enthusiast
Enthusiast
Posts: 269
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by deeproot »

STARGÅTE wrote:
ebs wrote:Would you consider adding a flag to prevent the user from being able to move the tabs?
I will add it.
I was just thinking exactly the same thing!! - sometimes it would be useful.

Been trying this new version over the last couple of days. Very good work - many thanks for sharing it. This gadget will definitely be central to the UI of my main project and will be credited.

Geoff.
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Re: TabBarGadget - Tabs like in a browser

Post by X »

This is extremely nice! I have to keep tabs on this puppy.
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Re: TabBarGadget - Tabs like in a browser

Post by X »

Nvm, updating
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by STARGÅTE »

I would like to introduce you to the next update to the TabBarGadget.
It is much more to come, and it has also changed some:

Update 1.2 (1. Mar 2011)
  • Full support as *.chm and online (first only in german, english will come soon)
  • Other procedures such as SetTabBarGadgetAttribute(), SetTabBarGadgetItemColor(), DisableTabBarGadgetItem()
  • A few new attributes: NoTabMoving, MirroredTabs, TabRounding
  • Improvements in the representation of movement and navigation
Include: TabBarGadget.pbi (Version 1.2.0)
Online version of the help: Das Registerkartenleisten-Gadget
(first only in german, english will come soon)
Zip-Archive: TabBarGadget.zip (include, example and help)

Here some screens:
Imagedisable tabs
Imagemirrored tabs
Imageother tab color
Imagefade out in navigation
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
Tenaja
Addict
Addict
Posts: 1948
Joined: Tue Nov 09, 2010 10:15 pm

Re: TabBarGadget - Tabs like in a browser

Post by Tenaja »

Do you have any plans to make them oriented vertically, with the content beside the tabs rather than below?

See the very bottom of this pic for an example.
http://www.geany.org/uploads/Gallery/geany_win32.png
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by STARGÅTE »

Tenaja wrote:Do you have any plans to make them oriented vertically, with the content beside the tabs rather than below?
Yes, I would like to integrate it, but I would also rotate the text, like in notepad++
Image
or should i add a new flags like: #TabBarGadget_VerticalTabs, #TabBarGadget_VerticalText ?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
Tenaja
Addict
Addict
Posts: 1948
Joined: Tue Nov 09, 2010 10:15 pm

Re: TabBarGadget - Tabs like in a browser

Post by Tenaja »

Well, what I had in mind would require the text to still be horizontal, like in the png file. This allows several options in a short space while maintaining readability.
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by STARGÅTE »

Update 1.3 (1. Sep 2012)
  • Multiline tab bar
  • Procedures to set tooltips for each tab item, the close button and the new tab
  • Set minimum and maximum of tab width
  • some bug fixes
Image

Include: TabBarGadget.pbi (Version 1.3.0)
Help: Das Registerkartenleisten-Gadget
Archive: TabBarGadget.zip (Include, Example and Help)
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by flaith »

:shock: Wonderful, many thanks STARGÅTE :D
“Fear is a reaction. Courage is a decision.” - WC
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: TabBarGadget - Tabs like in a browser

Post by kenmo »

Just popping in to say:

Thank you STARGATE, the TabBarGadget is incredible, one of the best PB community contributions I've ever seen!

I'm using it in a project finally, and I'm wondering -- any update on the English help file, and are there any planned updates to the gadget?

The only feature I'd like to request is the ability to only show a Close [X] button on the ACTIVE tab. Currently you can only show them on ALL tabs or NO tabs -- unless I'm overlooking something.

Thanks again for your work!
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by STARGÅTE »

kenmo wrote:any update on the English help file, and are there any planned updates to the gadget?
I try to write a help in English. Until then, please use a translator:
http://translate.google.de/translate?hl ... rgadget%2F

Currently I'm working on version 1.4 with the following features:
  • real vertical tabbars (with rotated text)
  • attribute: enable editable tabs
  • attribute: multi selectable tabs
  • some bug fixes
here a screenshot:
Image
kenmo wrote:The only feature I'd like to request is the ability to only show a Close [X] button on the ACTIVE tab. Currently you can only show them on ALL tabs or NO tabs
i can include it in the next update...
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Re: TabBarGadget - Tabs like in a browser

Post by Poshu »

This update looks nice :D
Since the documentation is in german I might be asking something stupid, but: Is there a way to disable the new tab opening with double click?
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by STARGÅTE »

In the current version 1.3, only in code:
Line 870-872: make a comment in Line 871

Code: Select all

			If EventType() = #PB_EventType_LeftDoubleClick
				; \Event = #TabBarGadgetEvent_NewTab ; now double click for new tab is disabled
			EndIf
or you can check in your code, if you get the #TabBarGadgetEvent_NewTab -Event from the TabBarGadget check:
If EventType() <> #PB_EventType_LeftDoubleClick
_________

In the update 1.4, it will be set via \EnableDoubleClickForNewTab = #True/#Flase
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Fred
Administrator
Administrator
Posts: 16617
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: TabBarGadget - Tabs like in a browser

Post by Fred »

Looks great !
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: TabBarGadget - Tabs like in a browser

Post by davido »

Stargate:

Thank you for this. Excellent work. :D

Thanks also for sharing the code. I'll enjoy learning new techniques.
DE AA EB
Post Reply