<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Possible to change many different fill colors for a visu element?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/</id><updated>2020-02-27T18:21:38.962000Z</updated><subtitle>Recent posts to Possible to change many different fill colors for a visu element?</subtitle><entry><title>Possible to change many different fill colors for a visu element?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/?limit=25#9ea8" rel="alternate"/><published>2020-02-27T18:21:38.962000Z</published><updated>2020-02-27T18:21:38.962000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.comac6be15903b0d6463b289717ed03dd0569ae8fda</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks a lot! &lt;br/&gt;
Replacing first 00 with FF did the trick. But even Sherlock Holmes will have a really hard time finding that &lt;br/&gt;
And to make it even harder, the help file explicitly states &lt;strong&gt;"The leading byte always is 16#00"&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I think color should be set as 16#xxRRGGBB , and Codesys should set the leading byte depending on that transparency setting.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Possible to change many different fill colors for a visu element?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/?limit=25#584c" rel="alternate"/><published>2020-02-27T18:21:35.810000Z</published><updated>2020-02-27T18:21:35.810000Z</updated><author><name>galexis</name><uri>https://forge.codesys.com/u/galexis/</uri></author><id>https://forge.codesys.com8940721d631b48b6b17b8b0410ebf1b7fe2fe46d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you very much : it work well !&lt;br/&gt;
It must be had to help of codesys....&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Possible to change many different fill colors for a visu element?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/?limit=25#2f90" rel="alternate"/><published>2020-02-27T18:21:34.684000Z</published><updated>2020-02-27T18:21:34.684000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comddee8625ac4217f6e13d6ea007e630c9b8832923</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Color variables&lt;br/&gt;
Applied for dynamic definitions for the color of the element via a project variable.&lt;br/&gt;
A color is defined by a hex number which is composed of Red/Green/Blue (RGB) components.&lt;br/&gt;
A project variable of type DWORD must be entered like prog1.dwFillColor.&lt;br/&gt;
The variable must define the color value in hexadecimal format.&lt;br/&gt;
&lt;br/&gt;
To fill the complete DWORD, the first two digits after "16#" have to be set to zero: "16#00RRGGBB".&lt;br/&gt;
&lt;br/&gt;
HIND to the first two digits:&lt;br/&gt;
    00 is used when under Visualization Manager &amp;gt; Activate semi-transparent drawing is NOT active&lt;br/&gt;
    FF, instead of 00, is used when under Visualization Manager &amp;gt; Activate semi-transparent drawing is active&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Color.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2303"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Possible to change many different fill colors for a visu element?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/?limit=25#4397" rel="alternate"/><published>2020-02-27T18:21:33.587000Z</published><updated>2020-02-27T18:21:33.587000Z</updated><author><name>galexis</name><uri>https://forge.codesys.com/u/galexis/</uri></author><id>https://forge.codesys.comb6abb287739774eed810043707f0a3a9d67b9f1d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have the same problem with 3.5 SP9 patch3...&lt;br/&gt;
When variable (GVL DWORD) is in "variable color": fill color disappear.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Possible to change many different fill colors for a visu element?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/dcf14a34d7/?limit=25#6ddc" rel="alternate"/><published>2020-02-27T18:21:30.455000Z</published><updated>2020-02-27T18:21:30.455000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.com48e54cea8b005df02731c672e7b1598030c4ab76</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to achieve something very simple. &lt;br/&gt;
There is a rectangle in a visualization. I want to change the background(fill) color of that rectangle between white-grey-green-orange-red by modifying a variable value.&lt;/p&gt;
&lt;p&gt;Acc. to Codesys help ( I use 3.5 sp7 patch 2) , this should be done by assigning a DWORD variable to Colorvariables/Normal State / Fill color and eventually  to Colorvariables/Alarmstate / Fill color. DWORD should contain an RGB color in the form 16#00RRGGBB, so if it is, say, 16#0000FF00, the rectangle background should become green.&lt;br/&gt;
However, nothing like that happens - when I assign a variable to Colorvariables/.../Fill color - the element simply becomes invisible, no matter what the variable value is.&lt;/p&gt;
&lt;p&gt;What am I missing? &lt;br/&gt;
Attached is a simple Control Win 3 project with one visu which shows the problem.&lt;/p&gt;
&lt;p&gt;Thanks for any suggestions&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2302" rel="nofollow"&gt;visuTest.project &lt;span&gt;&lt;span&gt;[160.25 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>