Page 1 of 1

Coloring bars?

Posted: Fri Jun 01, 2018 5:09 pm
by Dummy1912
Hello,

was wondering who can helpme with this part

what we like to have is
when we are loading bars in our panel
we like to change them with colors

we like to start with color white as backcolor
then when a new bar is added we like to have that bar as color 215,228,211
then we add a new bar then we get back the color white
ect....
it has to be going automatic ;) changing those backcolors

how someone can help me out.
Thanks

Re: Coloring bars?

Posted: Fri Jun 01, 2018 5:35 pm
by CodenStuff
Can you clarify your question a bit.

Do you want the bar to change color like this?
backbar.png
If not can you give a quick image of what you're looking for :)

Re: Coloring bars?

Posted: Fri Jun 01, 2018 7:31 pm
by Dummy1912
hmmm nice try :)
but no

i want this :D
98652356.png

Re: Coloring bars?

Posted: Fri Jun 01, 2018 8:48 pm
by CodenStuff
You could use a boolean and change its true/false each time you add a bar...
Code: Select all
Dim BarBackCol as boolean = true
Default your bars to have a white background and then check it when adding each bar and changing its value , example;
Code: Select all
If (BarBackCol) then
Change background colour to gray
BarBackCol = false
else
BarBackCol = true
end if
Should work

Re: Coloring bars?

Posted: Fri Jun 01, 2018 9:50 pm
by Dummy1912
OMG...

you are an angel :D

thanks works like a charm

result:
98652356.png

love you :lover;