# Javascript: StatusBarViewGeneratorColors.setFrameColor Method

> Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support frames anymore. Sets the color of the status bar's frames.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: StatusBarViewGeneratorColors.setFrameColor Method
- **423 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/setframecolor-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/setframecolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/setframecolor-method/llms-full.txt

---

### Description

`Obsolete. This method will be removed in one of the next versions.` Since version 33.0 the status bar doesn't support frames anymore. Sets the color of the status bar's frames.

### Syntax

```javascript
<void> StatusBarViewGeneratorColors.setFrameColor(<string> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| value | The property value. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `StatusBarViewGeneratorColors.setFrameColor` in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support frames anymore. Sets the color of the status bar's frames.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureFrameColor(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.setFrameColor(
        "Quarterly report",
        function() {
            console.log("set frame color completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGeneratorColors.setForeColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/setforecolor-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGeneratorColors.setGradientBackColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/setgradientbackcolor-method/llms-full.txt)
