CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Tue Apr 25, 2017 5:29 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Mar 29, 2017 12:58 pm 
Offline

Joined: Thu Nov 19, 2015 2:40 pm
Posts: 21
Hi,

I want to give an variable color to an element like a rectangle. I tried that with : Farbvariablen -> Normalzustand -> F├╝llfarbe (Color variable -> Normal state -> Fillcolor). I added the var test_color (DWORD) and give it the value: 16#FF0000. When i start my visu, the rectangle should be red, but thats not the case. Did i forget anything?


Top
   
PostPosted: Wed Mar 29, 2017 6:30 pm 
Offline

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 13
Is your fill attribute set to Hollow? Any other changes made to the element besides tying the variable to the fill color property?


Top
   
PostPosted: Thu Mar 30, 2017 5:40 am 
Offline

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 15
Use 16#FFFF0000. It's RGBA, 4 bytes - 3 colors + alpha-channel.


Top
   
PostPosted: Fri Mar 31, 2017 11:55 am 
Offline

Joined: Thu Nov 19, 2015 2:40 pm
Posts: 21
Thanks for your help. I solved the problem by updating my Styleconfiguration.
e.kislov wrote:
Use 16#FFFF0000. It's RGBA, 4 bytes - 3 colors + alpha-channel.

That also helped a lot.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited