Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WB18] Change background color of a button (2 replies)

$
0
0
Hello to all

First, i apologize for this stupid question, but this is my situation:

i have 5 buttons .
At runtime, when the user push a button it must assume a RED Background color and the other remain GRAY as background.

this is the portion of code:

for j=1 to 5
         if  j=1 then 
                   {"Button_"+j}..Brushcolor=lightred
             else
                   {"Button_"+j}..Brushcolor=lightgray
         end
end

Unfortunately it seems that the bg color cannot be changed at runtime.
Is it right or do am i missing something?

This is a screenshot of the window


Thanks in advance
Gianni

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>