# Using Alternative Color Scheme with InfoCenter Balloon messages

> How to display InfoCenter balloon messages with an Alternative Color Scheme (ACS), including setting custom colors via the CMS scripting functions.

Source: https://docs.capaone.com/capainstaller/appendix/using-alternative-color-scheme-with-infocenter-balloon-messages/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

# **Introduction**

This document describes how to use Alternative Color Schemes(ACS) with InfoCenter Balloon messages.

ACS can be used in combination with EndUserCancellation or it can be used on a single custom balloon message.

![](/attachments/capainstaller/651f8122-a53f-4a47-941b-efcd319e53b2.png)

#### How to use

If you want to use ACS with EndUserCancellation you have the option to define how many remaining cancellations should activate ACS. For more info [CMS_UseAlternativeColorSchemeAt](/capainstaller/vb-scripting-library/cms-functions/cms-usealternativecolorschemeat/)

If you want to use ACS with a custom balloon message make a call to CMS\_ActivateAlternativeColorScheme which will make the next balloon message display with ACS. For more info [CMS_ActivateAlternativeColorScheme](/capainstaller/vb-scripting-library/cms-functions/cms-activatealternativecolorscheme/)

Note: InfoCenter will only use ACS once. The next balloon message will use a standard color scheme if ACS is not reactivated.

#### Using Custom Colors

If you do not want the default color scheme for ACS you can create your own scheme.

To do that you can call the functions below to change color from the default color:

[CMS_SetTopColor](/capainstaller/vb-scripting-library/cms-functions/cms-settopcolor/)  
[CMS_SetBottomColor](/capainstaller/vb-scripting-library/cms-functions/cms-setbottomcolor/)  
[CMS_SetBorderColor](/capainstaller/vb-scripting-library/cms-functions/cms-setbordercolor/)  
[CMS_SetTextColor](/capainstaller/vb-scripting-library/cms-functions/cms-settextcolor/)

All functions take a Color HEX value parameter e.g. #FF0000. The balloon message uses a gradient background which is why both a top and bottom color can be provided. If you want a flat style use the same color value for both functions.

You do not need to call all functions. Only those you wish to change.

For more information on Color HEX [click here](http://www.w3schools.com/html/html_colors.asp)

#### Example of Custom Color Scheme

**VBScript**

```vb
If bStatus Then bStatus=CMS_SetTopColor("#E8E8E8")
If bStatus Then bStatus=CMS_SetBottomColor("#D0D0D0")
If bStatus Then bStatus=CMS_SetBorderColor("#505050")
If bStatus Then bStatus=CMS_SetTextColor("#000000"))
```

Using the above code an ACS will look like below

![](/attachments/capainstaller/2ae0ec45-3e50-44cf-906c-a1e75c632ee8.png)

#### Known Issues

It is not possible to change the color of the buttons.
