c4d.gui.QuickTabCustomGui¶
-
class
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:
The picture shows two elements, the top one with QUICKTAB_BAR set to True.
Methods Signatures
QuickTabCustomGui.ClearStrings(self) |
Removes all strings. |
QuickTabCustomGui.AppendString(self, id, str, checked) |
Appends a string. |
QuickTabCustomGui.DoLayoutChange(self) |
Call this after appending strings to show the results. |
QuickTabCustomGui.IsSelected(self, id) |
Checks if a string is selected. |
QuickTabCustomGui.SetTextColor(self, id, col) |
Set the text color of item id to col. |
QuickTabCustomGui.Select(self, id, b) |
Change the selection state of item id to b. |
QuickTabCustomGui.SetLayerColor(self, id, show, col) |
Sets the layer color of string id. |
Inheritance
Inheritance
Parent Class:
Methods Documentation
-
QuickTabCustomGui.
ClearStrings
(self)¶ Removes all strings.
-
QuickTabCustomGui.
AppendString
(self, id, str, checked)¶ Appends a string.
Parameters: - id (int) – String ID.
- str (str) – String to append.
- checked (bool) – Initial selection state.
-
QuickTabCustomGui.
DoLayoutChange
(self)¶ Call this after appending strings to show the results.
-
QuickTabCustomGui.
IsSelected
(self, 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
(self, 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
(self, 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.
-
QuickTabCustomGui.
SetLayerColor
(self, id, show, col)¶ Sets the layer color of string id.
Parameters: - id (int) – The string ID.
- show (bool) – True to show the layer color.
- col (c4d.Vector) – The color.