version: 1.05 , Oct 28, 2016 author: Jost Muxfeldt
the UserView which draws the widget
The tab label text
returns the index of this tab
focus this tab
delete this tab from parent
a Function to be performed on remove: {arg thisView; do stuff }
a Function to be performed right before detach or on dragging to another view: {arg thisView; do stuff...}.
a Function to be performed right after detach or on dragging to another view: {arg thisView; do stuff...}.
See TabbedView2: Setting Colors
You must call .refresh on the parent tabbedView2 for changes to be visible.
boolean. default false. Add an icon for detaching the view ( Qt GUI only)
set with \auto or and integer
adds your function to the user draw function. Add an icon if something is happening in the tab, for example
Boolean or Function: {arg thisView; return boolean}. to disable:set to false
Boolean or Function: {arg thisView; return boolean}- add a close icon by setting this to true. If tabWidth is \auto, the width will adjust automatically, but you might have to play with TabbedView2's labelPadding, depending on other settings, like the TabbedView2's Font, or tabHeight, etc.
add a focus action to the tab. For example enable a scope you are showing in the tab.
add an unfocus action to the tab. For example disable a scope you were showing in the tab.
The TabbedView2 instance to which a detached TabbedViewTab instance will return if its enclosing window is closed. This defaults to the TabbedView2 instnace which created the TabbedViewTab instance (using add).