OnClicked

Description

This callback is fired when a user clicks a button on the property page.

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>_<button_name>_OnClicked()
    {
       ...
    }

    # Python
    def <property_name>_<button_name>_OnClicked():
       ...

    ' VBScript
    Function <property_name>_<button_name>_OnClicked()
       ...
    End Function

    # Perlscript
    sub <property_name>_<button_name>_OnClicked
    {
       ...
    }

<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".

<button_name> is the name specified in the call to AddButton, with any spaces removed.

See Also

• Define

• DefineLayout

• OnChanged

• OnClosed

• OnInit

• OnTab

• PPGEvent

• Command Button

• Property Callbacks

Autodesk Softimage v7.5