• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2025 Replies
  • 331 Replies
    1928 Replies

Coloring bars?

Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
User avatar
Dummy1912
VIP - Donator
Posts: 1965

Coloring bars?

Fri Jun 01, 2018 6:09 pm

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

User avatar
CodenStuff
Site Admin
Posts: 4373

Re: Coloring bars?

Fri Jun 01, 2018 6:35 pm

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 :)
You do not have the required permissions to view the files attached to this post.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.

User avatar
Dummy1912
VIP - Donator
Posts: 1965

Re: Coloring bars?

Fri Jun 01, 2018 8:31 pm

hmmm nice try :)
but no

i want this :D
98652356.png
You do not have the required permissions to view the files attached to this post.

User avatar
CodenStuff
Site Admin
Posts: 4373

Re: Coloring bars?

Fri Jun 01, 2018 9:48 pm

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
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.

User avatar
Dummy1912
VIP - Donator
Posts: 1965

Re: Coloring bars?

Fri Jun 01, 2018 10:50 pm

OMG...

you are an angel :D

thanks works like a charm

result:
98652356.png

love you :lover;
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Tutorial Requests”