OnTab

Description

This callback is fired when a user clicks a tab on the property page, and when the property page is opened.

The OnTab callback is not fired if the property page is displayed as a list.

To access the property page from the callback code, use the PPG object.

Applies To

Custom Properties implemented in a scripting language.

Syntax

// JScript
function <property_name>_<tab_label>_OnTab()
{
   ...
}

# Python
def <property_name>_<tab_label>_OnTab():
   ...

' VBScript
Function <property_name>_<tab_label>_OnTab()
   ...
End Function

# Perlscript
sub <property_name>_<tab_label>_OnTab
{
   ...
}

<property_name> is the name specified in the call to RegisterProperty, with any spaces removed. For example, if you register a property with the name "My Property", the callback function names start with "MyProperty".

<tab_label> is the label specified in the call to AddTab, with any spaces removed.

See Also

Define

DefineLayout

OnChanged

OnClicked

OnClosed

OnInit

PPGEvent

Property Callbacks



Autodesk Softimage v7.5