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 General category of the Properties window for the DataWindow object.

To display the change at runtime, add the following statement to code that runs before the DataWindow is displayed:

dw1.Modify("DataWindow.ShowBackColorOnXP = yes")