As I mentioned before, I did some very minor cleanup and put the TabBarGadget on GitHub:
- GitHub repo
I have some updates. First, I started a develop branch with STARGATE's recommended changes from this thread:
- develop branch
- See diff/changes
Second, I created another branch called kenmo-mods with lots of changes I've collected over ~6 years of using TabBarGadget
- kenmo-mods branch
- See diff/changes
- Direct link to TabBarGadget.pbi
Here is the log of changes:
Hopefully this is useful to some peopleReturn 24-bit color from GetTabBarGadgetItemColor() (remove alpha)
viewtopic.php?p=549690#p549690
Unbind gadget before freeing it (and free gadget before freeing memory)
viewtopic.php?p=552651#p552651
Don't force EnableExplicit if being Included in another file
Check that StartDrawing() succeeded before drawing
Force a recalculation of TabSize after changing font
Prevent thread+PostEvent issue on Mac PureBasic pre-5.60
Clear references to *Item before removing it
Clear UpdatePosted flag even if StartDrawing() fails
Define RGB constants for default colors
Added more safety checks to Callback and FreeTabBarGadget()
Store the default font ID so it can be reused by SetTabBarGadgetFont()
Added function to change WheelDirection - SetTabBarGadgetGlobalAttribute()
Made MouseWheel action settable (None, Scroll, or Change tab)
Added global DrawDisabled attribute (for batch tab changes)
Add global attributes for MiddleClickForClose and DoubleClickForNew
Added attributes to set the Bar, Border, Face, and Text default colors
Added support for WinAPI DrawText_() for clearer text on some Windows
Added GetTabBarGadgetGlobalAttribute() for the new attributes

STARGATE maybe you can consider some of these changes for your future official release.