TabBarGadget - Tabs like in a browser
- freepurebasic
- Enthusiast
- Posts: 123
- Joined: Fri Sep 24, 2010 12:02 pm
- Location: world wide web
Re: TabBarGadget - Tabs like in a browser
Nice work.
But when I add several more tabs the only indicator that there are many tabs out of view are the small arrows on the sides.
I feel the tabs should be cut at the edges. I don't use tabs in Firefox anymore, but I believe that's how they did it.
Speeking of which: Scrollwheel support to scroll through the tabs would be nice, too.
Also some way to add text and/or an icon to the "new tab"-tab.
And some more events like, doubleclick and right mouseclick on tab.
Nice touch with the double click on emty space that creates a new tab.
But this should also be handled with a independent double-click event so we can disable this feature.
Nice job, again.
Soon I will not use any standard gadgets anymore. So many cool Canvas-versions
But when I add several more tabs the only indicator that there are many tabs out of view are the small arrows on the sides.
I feel the tabs should be cut at the edges. I don't use tabs in Firefox anymore, but I believe that's how they did it.
Speeking of which: Scrollwheel support to scroll through the tabs would be nice, too.
Also some way to add text and/or an icon to the "new tab"-tab.
And some more events like, doubleclick and right mouseclick on tab.
Nice touch with the double click on emty space that creates a new tab.
But this should also be handled with a independent double-click event so we can disable this feature.
Nice job, again.
Soon I will not use any standard gadgets anymore. So many cool Canvas-versions
Re: TabBarGadget - Tabs like in a browser
yes, I include itDerren wrote:Speeking of which: Scrollwheel support to scroll through the tabs would be nice, too.
good idea, like a special constant for position for AddTabBarGadgetItem or SetTabBarGadgetText likeDerren wrote:Also some way to add text and/or an icon to the "new tab"-tab.
I think at this point we also can use EventType() of PureBasic.Derren wrote:And some more events like, doubleclick and right mouseclick on tab.
I then add just a EventTab, which returns the tab position of the event, ok?
yes, thats right, the new EventTab() will then return #TabBarGadget_Space or so.Derren wrote:Nice touch with the double click on emty space that creates a new tab.
But this should also be handled with a independent double-click event so we can disable this feature.
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 more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: TabBarGadget - Tabs like in a browser
Totally fine.STARGÅTE wrote:I think at this point we also can use EventType() of PureBasic.
I then add just a EventTab, which returns the tab position of the event, ok?
And sounds consistent with PB.
A command to determine what happened and one to determine where it happened.
Thanks for considering my ideas.
Re: TabBarGadget - Tabs like in a browser
It took a little longer, but here are the first beta of the new update:
Update 1.1 (Beta) (12. Dec 2011)
TabBarGadget - Include (12. Dec 2011)
TabBarGadget - Beispiel (12. Dec 2011)
Update 1.1 (Beta) (12. Dec 2011)
- Many new procedures for the gadget added
- Optional text cut in too little space
- EventTab() for use with EventType() to determine the tab with the event
- Using mouse wheel for navigation
- tool tip text for each tab
- Improved (animated) representation of the shift tab
TabBarGadget - Include (12. Dec 2011)
TabBarGadget - Beispiel (12. Dec 2011)
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 more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: TabBarGadget - Tabs like in a browser
Oh wow, this looks wonderful!
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
- flaith
- 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
A real "must have", thanks a lot for sharing
“Fear is a reaction. Courage is a decision.” - WC
Re: TabBarGadget - Tabs like in a browser
Looks very nice - thanks for sharing.
I may look like a mule, but I'm not a complete ass.
- electrochrisso
- Addict
- Posts: 980
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River
Re: TabBarGadget - Tabs like in a browser
Good coding, Thanks for sharing.
Should something happen when I use the mouse wheel.
Should something happen when I use the mouse wheel.
PureBasic! Purely one of the best
Re: TabBarGadget - Tabs like in a browser
Yes. If you select a TabBar with "<" or ">" on the ends, you can scrollelectrochrisso wrote:...
Should something happen when I use the mouse wheel.
the tabs to left/right.
- electrochrisso
- Addict
- Posts: 980
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River
Re: TabBarGadget - Tabs like in a browser
Strange, this computer not playing the game, I can delete tabs by clicking on the mousewheel though.Yes. If you select a TabBar with "<" or ">" on the ends, you can scroll the tabs to left/right.
Might need to play with the mouse settings.
PureBasic! Purely one of the best
Re: TabBarGadget - Tabs like in a browser
Stargate,
This is great! Thank you for sharing.
Would you consider adding a flag to prevent the user from being able to move the tabs?
There are some cases when I wouldn't want to allow the tabs to be rearranged by the user.
Thanks,
Eric
This is great! Thank you for sharing.
Would you consider adding a flag to prevent the user from being able to move the tabs?
There are some cases when I wouldn't want to allow the tabs to be rearranged by the user.
Thanks,
Eric
Re: TabBarGadget - Tabs like in a browser
I guess I'm the first to try the TabBarGadget on a Mac.
Small problem. For some reason, in line 128, returns zero. I substituted to see if it would work. It did work so I guess the Mac users will need to know what font/size to use.
[edit] Well, there is a mention of this behavior in the Help manual. Maybe if the font is defined on the Mac version then GetGadgetFont(#PB_Default) would work but that ends up with having to load the font either way...
Small problem. For some reason, in line 128,
Code: Select all
\FontID=GetGadgetFont(#PB_Default)
Code: Select all
\FontID =FontID(LoadFont(#PB_Any,"Geneva",9)) ; edited
[edit] Well, there is a mention of this behavior in the Help manual. Maybe if the font is defined on the Mac version then GetGadgetFont(#PB_Default) would work but that ends up with having to load the font either way...
Last edited by WilliamL on Thu Dec 15, 2011 11:51 pm, edited 1 time in total.
MacBook Pro-M1 (2021), Sonoma 14.4.1, PB 6.10LTS M1
Re: TabBarGadget - Tabs like in a browser
I will add it.ebs wrote:Would you consider adding a flag to prevent the user from being able to move the tabs?
thx for test it on mac.WilliamL wrote:I guess I'm the first to try the TabBarGadget on a Mac.
but \FontID is the Font-ID not the Font-Number, so if you replace it, use this one:
Code: Select all
\FontID = FontID(LoadFont(#PB_Any,"Geneva",9))
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 more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module