# Tab Object

> Source: https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab

The purpose of the Tab object is to define each tab within a **Folder**. The **[Tab Properties](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#tab_props)** and **[Tab Methods](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#tab_methods)** are listed below.

## Tab Properties

Below is a list of Tab properties.

| **Tab Properties** | **Description** |
| --- | --- |
| **Active** | ***(Internal Use Only)***<br>Active/enabled tab. If non-zero, the tab is active. |
| **Bitmap$** | Bitmap to display to the left of the tab if applicable. |
| **BackgroundCnt** | ***(Read Only)***<br>Background controls counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **DefId** | ***(Read Only)***<br>Default button ID for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)***.* |
| **Defk$** | ***(Read Only)***<br>Default button key for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)***.* |
| **DependsCnt** | ***(Read Only)***<br>Dependency controls counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **DragonCnt** | ***(Read Only)***<br>Drag and drop controls counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **DynapicCnt** | ***(Read Only)***<br>Dynamic pictures counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **ExtCnt** | ***(Read Only)***<br>External (VBX) controls counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **Grps$** | ***(Read Only)***<br>Comma-separated list of group names for the current tab. |
| **Id** | ***(Read Only)***<br>Sequential ID number of the tab. |
| **NextId** | ***(Read Only)***<br>Contains the contents of the NEXT_ID variable. This property is used with the **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)** option only.<br>NOMADS will load this property after the Post-Display logic for the tab executes and if the *Execute Post-Disp One Time* option is turned ***On*** in the Folder definition panel. |
| **ObjVarlst$** | ***(Read Only)***<br>Comma-separated list of control names for the current tab. |
| **OcxCnt** | ***(Read Only)***<br>OCX controls counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **OnExit$** | ***(Read Only)***<br>Logic that will execute on exit of the active tab. |
| **OneTimePostLoad$** | ***(Read Only)***<br>Post-Load logic indicator used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br> **0** - Always execute Post-Load logic ***(Default)***  <br> **1** - Execute Post-Load logic one time only |
| **OneTimePreLoad$** | ***(Read Only)***<br>Pre-Load logic indicator used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br> **0** - Always execute Pre-Load logic ***(Default)***  <br> **1** - Execute Pre-Load logic one time only |
| **PanelName$** | Panel name for the current tab. |
| **PersistenceCnt** | ***(Read Only)***<br>Object persistence counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **PostLoad$** | ***(Read Only)***<br>Logic that executes after all controls on the active tab are drawn. |
| **PreLoad$** | ***(Read Only)***<br>Logic that executes before the active tab is drawn. |
| **Renamed** | ***(Read Only)***<br>Flag indicating whether the controls on the tab have yet been renamed (0 or 1). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **Resize** | ***(Internal Use Only - Not Used in iNomads)***<br>Resize indicator for current tab (0 or 1). |
| **ScrollCol** | ***(Read Only)***<br>Contains the starting scroll column. |
| **Scrolled** | ***(Read Only)***<br>Scrollable tab indicator (0 or 1). |
| **ScrollLn** | ***(Read Only)***<br>Contains the starting scroll line. |
| **SmartCnt** | ***(Read Only)***<br>Smart controls counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **TabTable$** | ***(Read Only)***<br>Contains the tab table definition for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **Tag$** | User defined information for the tab. |
| **UsrCnt** | ***(Read Only)***<br>User controls counter for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |

## Tab Methods

Below is a list of Tab methods.

| **Tab Methods** | **Description** |
| --- | --- |
| **GetAltColour$**( )  <br>**GetAltColor$**( ) | ***(Optional)***<br>Returns the secondary fill colour for the tab. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **GetAltkey$**( ) | Returns the Alt key for the tab. |
| **GetAutoCloseFiles**( ) | Returns Auto Close Files option (0 or 1). If 1, then all opened files will be closed on exit of the tab. |
| **GetBackColour$**( )  <br>**GetBackColor$**( ) | Returns background colour for the tab. This colour will fill the text background (not the whole region) as long as an *S* is included in the font attributes. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **GetBackground$**(*idx*,*Wdwidx*) | ***(Used Internally by NOMADS)***<br>Returns the specified background ID and background logic defined for the tab (each value is separated by a $02$).  <br>  <br>*idx* - Table index number   <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetButtonSts**( ) | Returns the button status for the tab. Returns 1 if enabled, 0 if disabled. |
| **GetClassHelpQry$**(*idx*,*Wdwidx*) | ***(Used Internally by NOMADS)***<br>Returns the specified class names, help IDs and query names defined for the tab (each value is separated by a $02$).  <br>  <br>*idx* - Table index number   <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetColourNum**( )  <br>**GetColorNum**( ) | Returns the colour number (0 - 15). Used for panels created in an older version of NOMADS. |
| **GetCtlId**( ) | Returns the CTL value for the tab. |
| **GetDeleteImages$( )** | Returns a string containing the images to be deleted for the current tab. |
| **GetDemandPersist$**(*idx*,*Wdwidx*) | Returns the specified load on demand logic and the object persistence flags defined for the tab (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetDepends$**(*idx*,*Wdwidx*) | Returns the specified dependency definitions (conditions, actions and condition values) defined for the tab (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetDragons$**(*idx*,*Wdwidx*) | Returns the specified drag and drop definition for the tab - drop on control name, drag from control name, drop on CTL value and drop logic (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetFillPattern**( ) | Returns the fill pattern to be used for the tab. Values returned:   <br>  <br> **1** - Solid fill  <br> **2** - Top to bottom  <br> **3** - Left to right  <br> **4** - Crossed line  <br> **5** - Top-left to bottom-right  <br> **6** - Bottom-left to top-right  <br> **7** - Diagonal crossed lines |
| **GetFocus**( ) | Returns the index number of the tab with focus. |
| **GetGridRefresh$**(*idx*,*Wdwidx*) | Returns the specified grid information for the current tab - row refresh flag and no cell refresh flag (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetGroups$**(*idx*,*Wdwidx*) | Returns the specified group definition for the current tab - name and value (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetHideImages$**( ) | Returns a string containing the hidden images for the current tab. |
| **GetInitDraw**( ) | Returns the initial draw indicator (0 or 1). |
| **GetLogic$**(*idx*,*Wdwidx*) | Returns the specified on select logic, validator logic, formatter logic and on focus logic defined for the tab (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetNameTypeSts$**(*idx*,*Wdwidx*) | Returns the specified control name, object type and control attributes defined for the tab (each value is separated by $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetObjCount**( ) | Returns the number of controls on the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **GetOcxDefn$**(*idx*,*Wdwidx*) | Returns the specified OCX definition for the current tab - event name, event function and on event CTL value (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetOcxId**(*idx*,*Wdwidx*) | Returns the specified OCX IDs defined for the tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetOrigText$**( ) | Returns the original text for the tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**. |
| **GetPopup$**(*idx*,*Wdwidx*) | Returns the specified popup name and popup logic defined for the tab (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetShowImages$**( ) | Returns a string of images to be shown for the current tab. |
| **GetSmartCtl$**(*idx*,*Wdwidx*) | Returns the specified smart trigger variable/control information for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetSmartDefn$**(*idx*,*Wdwidx*) | Returns the specified smart list definition for the current tab - smart query name, CTL, IOL definition, test condition, MSG, pre-load logic, post load logic, selection logic, format definition, record definition, button IOList and button record definition (each value is separated by a $03$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetSuppress$**( ) | Returns the suppress tab option (0 or 1). If 1, then at run time, the tab will not be drawn if the sub-panel does not exist or the sub-panel does not have security access. |
| **GetTabColour$**( )  <br>**GetTabColor$**( ) | Returns the first fill colour for the tab. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **GetTextColour$**( )  <br>**GetTextColor$**( ) | Returns the colour of the text in the tab. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **GetText$**( ) | Returns the text for the tab. Can contain a fixed value or expression ("=" precedes the expression text). |
| **GetUsrCtls$**(*idx*,*Wdwidx*) | Returns the specified user CTL definition for the current tab - user CTL value and logic (each value is separated by a $02$). Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetValid$**(*idx*,*Wdwidx*) | Returns the specified validation rules defined for the tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4) |
| **GetTip$**( ) | Returns the tip that is displayed below the tab. |
| **LoadBackGround**(*idx*,*Wdwidx*,*Val$*) | Loads the specified background definition for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the background ID and background logic (each value is separated by a $02$) |
| **LoadClassHelpQry**(*idx*,*Wdwidx*,*Val$*) | Loads the specified class, help, and query definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the class name, help ID and query name (each value is separated by a $02$) |
| **LoadDemandPersist**(*idx*,*Wdwidx*,*Val$*) | Loads the specified load on demand logic and object persistence flags for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the load on demand logic and object persistence flag (each value is separated by a $02$) |
| **LoadDepends**(*idx*,*Wdwidx*,*Val$*) | Loads the specified dependency definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the dependency condition, action and condition value (each value is separated by a $02$) |
| **LoadDragons**(*idx*,*Wdwidx*,*Val$*) | Loads the specified drag and drop definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the drop on control name, drag from control name, drop on CTL value and drop logic (each value is separated by a $02$) |
| **LoadGridRefresh**(*idx*,*Wdwidx*,*Val$*) | Loads the specified grid refresh definition for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.   <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the grid row refresh flag and no cell refresh flag (each value is separated by a $02$) |
| **LoadGroups**(*idx*,*Wdwidx*,*Val$*) | Loads the specified group definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the name and value (each value is separated by a $02$) |
| **LoadLogic**(*idx*,*Wdwidx*,*Val$*) | Loads the specified logic definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the on select logic, validator logic, formatter logic and on focus logic (each value is separated by a $02$) |
| **LoadNameTypeSts**(*idx*,*Wdwidx*,*Val$*) | Loads the specified control name, type and control attributes for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the control name, object type and control attributes (each value is separated by a $02$) |
| **LoadOcxDefn**(*idx*,*Wdwidx*,*Val$*) | Loads the specified OCX definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the OCX event name, event function and on event CTL value (each value is separated by a $02$) |
| **LoadOcxId**(*idx*,*Wdwidx*,*Val*) | Loads the specified OCX IDs for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val -* Contains the OCX identifier |
| **LoadPopup**(*idx*,*Wdwidx*,*Val$*) | Loads the specified popup definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the popup name and popup logic (each value is separated by a $02$) |
| **LoadSmartCtl**(*idx*,*Wdwidx*,*Val$*) | Loads the specified smart trigger variable/controls for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the trigger variable/control |
| **LoadSmartDefn**(*idx*,*Wdwidx*,*Val$*) | Loads the specified smart lists definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the smart query name, CTL, IOL definition, test condition, MSG, pre-load logic, post-load logic, selection logic, format definition, record definition, button IOList and button record definition (each value is separated by a $03$) |
| **LoadUsrCtls**(*idx*,*Wdwidx*,*Val$*) | Loads the specified User CTL definitions for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the user CTL value and logic (each value is separated by a $02$) |
| **LoadValid**(*idx*,*Wdwidx*,*Val$*) | Loads the specified validation rules for the current tab. Used with **[Preserve Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/preserve-controls)**.  <br>  <br>*idx* - Table index number  <br>  <br>*Wdwidx* *-* Window index (0 - 4)  <br>  <br>*Val$ -* Contains the validation rules |
| **SetAltColour**(*Aclr$*)  <br>**SetAltColor**(*Aclr$*) | Sets the secondary fill colour for the tab. Returns 1 if successful, 0 if unsuccessful.   <br>  <br>*Aclr$ -* String containing one of four possible colour selections. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **SetAltkey**(*A$*) | Sets the Alt key for the tab. Returns 1 if successful, 0 if unsuccessful. |
| **SetAutoCloseFiles**(*A*) | ***(Internal Use Only)***<br>Sets the auto close files option. Returns 1 if successful, 0 if not.   <br>  <br>*A* - Can contain 0 or 1. If 1 is assigned, all opened files will be closed on exit of the tab. |
| **SetBackColour**(*BC$*)  <br>**SetBackColor**(*BC$*) | ***(Internal Use Only)***<br>Sets the background colour for the tab. Returns 1 if successful, 0 if unsuccessful.  <br>  <br>*BC$ -* String containing one of four possible colour selections. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **SetColourNum**(*C*)  <br>**SetColorNum**(*C*) | ***(Internal Use Only)***<br>Sets the colour number (0 - 15) for the tab (used for panels created in older NOMADS versions). Returns 1 if successful, 0 if unsuccessful. |
| **SetCtlId**(*C*) | ***(Internal Use Only)***<br>Sets the CTL value for the tab. Returns 1 if successful, 0 if unsuccessful. |
| **SetDeleteImages**(*DI$*) | ***(Internal Use Only)***<br>Sets the deleted images for the current tab. Returns 1 if successful, 0 if unsuccessful. |
| **SetFillPattern**(*F*) | Sets the fill pattern for the tab. Returns 1 if successful, 0 if unsuccessful.  <br>  <br>*F* can contain:  <br>  <br> **1** - Solid fill  <br> **2** - Top to bottom  <br> **3** - Left to right  <br> **4** - Crossed line  <br> **5** - Top-left to bottom-right  <br> **6** - Bottom-left to top-right  <br> **7** - Diagonal crossed lines |
| **SetFocus**(*F*) | ***(Internal Use Only)***<br>Sets the index number of the tab with focus. Returns 1 if successful, 0 if unsuccessful. |
| **SetHideImages**(*HI$*) | ***(Internal Use Only)***<br>Sets the hidden images for the current tab. Returns 1 if successful. |
| **SetInitDraw**(*ID*) | ***(Internal Use Only)***<br>Sets the initial draw flag for the current tab. Returns 1 if successful. |
| **SetObjCount**(*OC*) | ***(Internal Use Only)***<br>Sets the control count for the current tab. Returns 1 if successful, 0 if unsuccessful. |
| **SetOrigText**(*T$*) | ***(Internal Use Only)***<br>Sets the original text for the tab. |
| **SetShowImages**(*SI$*) | ***(Internal Use Only)***<br>Sets the hidden images for the current tab. Returns 1 if successful, 0 if unsuccessful. |
| **SetTabColour**(*Tclr$*)  <br>**SetTabColor**(*Tclr$*) | Sets the first fill colour for the tab. Returns 1 if successful, 0 if unsuccessful.  <br>  <br>*Tclr$ -* String containing one of four possible colour selections. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **SetTextColour**(*TC$*)  <br>**SetTextColor**(*TC$*) | Sets the text colour for the tab. Returns 1 if successful, 0 if unsuccessful.  <br>  <br>*TC$ -* String containing one of four possible colour selections. See **[Valid Colour Assignments](https://manual.pvxplus.com/nomads-graphical-application/appendix/oop-interface/tab#assignments)**. |
| **SetText**(*T$*) | Sets the text for the tab. Returns 1 if successful, 0 if unsuccessful.  <br>  <br>*T$ -* Can contain a fixed value or an expression. An **=** *(equals sign)* must precede the expression. |
| **SetTip**(*T$*) | Sets the tip message that will display below the tab.  <br>  <br>*T$* - Can contain a fixed value or an expression. An **=** *(equals sign)* must precede the expression. |
| **SetSuppress**(*S*) | Sets the suppress tab option.  <br>  <br>*S* - Can contain 0 or 1. If 1 is assigned, then at run time, the tab will not be drawn if the sub-panel does not exist or the sub-panel does not have security access. |

## Valid Colour Assignments

The four options for colour assignment are:

|  |  |  |
| --- | --- | --- |
|  | 1\. | Predefined system colour: Default, Dark Gray, Black, Dark Red, Light Red, Dark Green, Light Green, Dark Yellow, Light Yellow, Dark Blue, Light Blue, Dark Magenta, Light Magenta, Dark Cyan, Light Cyan, Light Gray, White. |
|  | 2\. | RGB setting; i.e. RGB: *n n n **where** n =* 0 - 255. |
|  | 3\. | User defined colour; i.e. Colour*n* or Color*n* ***where*** *n =* 16 - 255. |
|  | 4\. | An expression containing one of the above colour assignments. An **=** *(equals sign)* must precede the expression. |
