<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>12 May 2017 11:55:00 Z</lastBuildDate><pubDate>5 May 2017 13:34:00 Z</pubDate><description>Hello to all&#13;
&#13;
First, i apologize for this stupid question, but this is my situation:&#13;
&#13;
i have 5 buttons .&#13;
At runtime, when the user push a button it must assume a RED Background color and the other remain GRAY as background.&#13;
&#13;
this is the portion of code:&#13;
for j=1 to 5 if j=1 then {"Button_"+j}..Brushcolor=lightred else {"Button_"+j}..Brushcolor=lightgray end end&#13;
Unfortunately it seems that the bg color cannot be changed at runtime.&#13;
Is it right or do am i missing something?&#13;
&#13;
This is a screenshot of the window&#13;
&#13;
&#13;
Thanks in advance&#13;
Gianni</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button/read.awp</link><title>[WB18] Change background color of a button</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60844/read.awp</comments><pubDate>12 May 2017 11:55:00 Z</pubDate><description>Hello Bill&#13;
&#13;
Thanks for the tips&#13;
&#13;
Gianni</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60844/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60844/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button/read.awp">[WB18] Change background color of a button</source><title>Re: [WB18] Change background color of a button</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60835/read.awp</comments><pubDate>11 May 2017 20:29:00 Z</pubDate><description>Gianni,&#13;
&#13;
I just implemented this exact feature in WM21. As Fabrice noted, buttons with an image like those from a skin templat…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60835/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60835/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button/read.awp">[WB18] Change background color of a button</source><title>Re: [WB18] Change background color of a button</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60769/read.awp</comments><pubDate>8 May 2017 08:40:00 Z</pubDate><description>Hi to all&#13;
&#13;
Thanks for your suggestions&#13;
&#13;
Gianni</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60769/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60769/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button/read.awp">[WB18] Change background color of a button</source><title>Re: [WB18] Change background color of a button</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60751/read.awp</comments><pubDate>5 May 2017 21:35:00 Z</pubDate><description>Hi Gianni,&#13;
&#13;
Another thing to consider is that if you use indirection the affected controls need to be defined as "dynamic" typ…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60751/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60751/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button/read.awp">[WB18] Change background color of a button</source><title>Re: [WB18] Change background color of a button</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60744/read.awp</comments><pubDate>5 May 2017 15:38:00 Z</pubDate><description>Hi&#13;
&#13;
this code should work -IF- the button is a TEXT button. If it uses am image for the background, then the image is ABOVE yo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60744/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60744/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button/read.awp">[WB18] Change background color of a button</source><title>Re: [WB18] Change background color of a button</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60741/read.awp</comments><pubDate>5 May 2017 14:35:00 Z</pubDate><description>Hi Gianni,&#13;
&#13;
You can change it at runtime.&#13;
&#13;
I have had issues with the iteration. You would find it works with using the prop…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60741/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button-60741/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60726-wb18-change-background-color-button/read.awp">[WB18] Change background color of a button</source><title>Re: [WB18] Change background color of a button</title></item></channel></rss>
