Showing Button Background Color on XP
\The Sandbox \PB History & Future \New in PB 10.5 \New in PowerBuilder 10.5.1 \Button Background Color on XP
EAServer 6.0
PB App Server
Plug-in
JDK 1.5
Headers for
.NET Web Services
Spell Checking
in Rich Text
Page Numbers in
RTE Footers
Button Background
Color on XP
DB Connectivity
Changes

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.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com