Showing button background color on XP

When you change the background color of a button in a DataWindow® on the XP operating system, the change does not display by default in the Preview view or when you run the application, because the XP theme typically controls the background color of buttons.

To display the change in Preview mode, set the ShowBackColorOnXP property in the [Data Window] section of your PB.INI file:

[Data Window]
ShowBackColorOnXP=1

To display the change at runtime, add either of the following statements to a script that runs before the DataWindow is displayed:

dw_1.Object.DataWindow.ShowBackColorOnXP = "yes"
dw_1.Modify("DataWindow.ShowBackColorOnXP = yes")

This change is also available in PowerBuilder 10.5 EBF Build 5063 and PowerBuilder 10.2.1 EBF Build 9671 and later builds.