# DefaultPanel

int DefaultPanel (int panelHandle);

## Purpose

Restores all panel controls to their default values.

If the panel is visible, it updates to reflect the new control values. Assign default values to controls in the User Interface Editor or through SetCtrlAttribute using ATTR_DFLT_VALUE.

## Parameters

Input
Name | Type | Description
panelHandle | integer | Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel.

## Return Value

Name | Type | Description
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
Code | Error Message String
xx | Success