c4d.gui.QuickTabCustomGui

Quick tab GUI (CUSTOMGUI_QUICKTAB). The settings are:

QUICKTAB_BAR in Bar mode (0=off, 1=on, 2=non-bold). Set True for group title bars.
QUICKTAB_BARTITLE str Title for bar mode.
QUICKTAB_SHOWSINGLE bool Show single items.
QUICKTAB_SPRINGINGFOLDERS bool Allow springing folders (activate quicktabs on drag and drop).
QUICKTAB_SEPARATOR bool Draw separator.
QUICKTAB_BARSUBGROUP bool Handle as subgroup. Like bar mode, but with fold arrow icon. Implies QUICKTAB_BAR. Call QuickTabCustomGui.IsSelected() to get fold state.
QUICKTAB_BARLAYERCOLOR bool Show layer color.
QUICKTAB_NOLINEBREAK bool No line break for tabs inside scrollgroups.
QUICKTAB_BGCOLOR vector/int Color RGB or ID.
QUICKTAB_NOMULTISELECT bool No multiple tab selection.
QUICKTAB_ALTERNATIVECOLOR int Use an alternative color (color ID from color preferences).

This is what it looks like:

../../../../_images/quicktab.png

The picture shows two elements, the top one with QUICKTAB_BAR set to True.

Inheritance

Parent Class:

Members

QuickTabCustomGui.ClearStrings()

Removes all strings.

QuickTabCustomGui.AppendString(id, str, checked)

Appends a string.

Parameters:
  • id (int) – String ID.
  • str (str) – String to append.
  • checked (bool) – Initial selection state.
QuickTabCustomGui.DoLayoutChange()

Call this after appending strings to show the results.

QuickTabCustomGui.IsSelected(id)

Checks if a string is selected.

Parameters:id (int) – String ID.
Return type:bool
Returns:True if string id is selected, otherwise False.
QuickTabCustomGui.SetTextColor(id, col)

Set the text color of item id to col.

Parameters:
  • id (int) – String ID.
  • col (int) – Text color, e.g. COLOR_MATERIALMANAGER_TEXT_SELECTED. See COLOR.
QuickTabCustomGui.Select(id, b)

Change the selection state of item id to b.

Parameters:
  • id (int) – String ID.
  • b (bool) – New selection state.
Return type:

bool

Returns:

True if successful, otherwise False.