## 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

    function <property_name>_<button_name>_OnClicked()
    {
            ...
    }

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

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

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

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

### See Also

- Define
- DefineLayout
- OnChanged
- OnClosed
- OnInit
- OnTab
- PPGEvent
- Property Callbacks