Contenido principal

TabWindow

R2026b

Open a dialog containing a tab displayed as a separate window

Since R2026b

Description

hTabWindow = slrealtime.ui.tool.TabWindow('hFigureName',tabName) opens a dialog that contains a tab that is displayed as a window separate from the uifigure figure.

For information about control properties, see slrealtime.ui Properties. It is important to set the TargetSource property for this control if you plan on using your app with target computers other than the default target computer.

example

Examples

collapse all

Create a uifigure figure and create tabs for the figure. Open one of the tabs as a separate window. For more information, see the Tab object.

% Create figure 
hFig = uifigure;

% Create tab group and tabs
tg = uitabgroup(hFig);
t1 = uitab(tg,"Title","Data","BackgroundColor",[0 0.4470 0.7410]);
t2 = uitab(tg,"Title","Plots","BackgroundColor",[0 0.4470 0.7410]);

% Create Tab Window object for the t1 tab
myTabWin = slrealtime.ui.tool.TabWindow('hFig', t1)

Input Arguments

collapse all

The hFigureName argument is a character vector or string scalar that identifies the name of the uifigure that contains the tab.

Example: 'hFig'

The tabName argument identifies the uitab that is opened in a separate window.

Example: tabName

Output Arguments

collapse all

The hTabWindow argument is the handle to the tab window component that you create for the tab.

Version History

Introduced in R2026b