TabBackColor not working

Symptom

In PowerBuilder, when trying to change the tabbackcolor for a tabpage, it is not changing on windows 7.

Using the code of:

tab_1.tabpage_1.tabbackcolor = 16776960

Environment

PowerBuilder

Windows 7

Reproducing the Issue

1. On Windows 7, create a new template application in PowerBuilder.

2. Open any window and add a tab control.

3. Click on the tabpage and then go to properties.

4. Under the tabpage properties, change the tabbackcolor color.

5. Save the changes and notice that it doesn't change the tabpage 'tab' color.

Cause

This property is not supported on Windows 7 because the windows 'Theme' controls the appearance of the tab on the tab page.

Solution

Use the Windows Classic theme on Windows 7.