<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to frames with click elements</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/7b0897ed8a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/7b0897ed8a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/7b0897ed8a/</id><updated>2022-12-03T14:22:02.020000Z</updated><subtitle>Recent posts to frames with click elements</subtitle><entry><title>frames with click elements</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/7b0897ed8a/?limit=50#508f" rel="alternate"/><published>2022-12-03T14:22:02.020000Z</published><updated>2022-12-03T14:22:02.020000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.com51e4cce778f2be5404b1b71137abc4075c6c9f65</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yeah I understand that, but some visu elements don't have the OnMouseClick input.  Checkboxes and Combo Boxes, for example.  So in the example, I want to more than just check the box on a Checkbox element, I also want to set a variable.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>frames with click elements</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/7b0897ed8a/?limit=250#02ec" rel="alternate"/><published>2022-12-03T09:10:20.385000Z</published><updated>2022-12-03T09:10:20.385000Z</updated><author><name>Strucc.c</name><uri>https://forge.codesys.com/u/struccc/</uri></author><id>https://forge.codesys.comc099c7fa77a22bc85c7ed0d6efa0e755b2849c40</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The easiest thing you can do is to add a code to &lt;em&gt;""OnMouseClick""&lt;/em&gt; input:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;TestVar:= NOT TestVar;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Other option is to bind TestVar to &lt;em&gt;""Input configuration / Toggle / Variable"&lt;/em&gt;" &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>frames with click elements</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/7b0897ed8a/?limit=50#1d4a" rel="alternate"/><published>2022-12-02T15:39:37.282000Z</published><updated>2022-12-02T15:39:37.282000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.com9993b37330a5fdd3ac47c7416e2d1b0f7d4997e5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've create a visu with a single checkbox, associated with an interface variable&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;TestClickFrame_VISU&lt;/span&gt;
&lt;span class="err"&gt;VAR_IN_OUT&lt;/span&gt;
&lt;span class="err"&gt;    TestVar:    BOOL;   //referenced by the "Variable" property of the checkbox in the visu&lt;/span&gt;
&lt;span class="err"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I then create another visu, "TestClick_VISU", which contains a single frame, referenced to TestClickFrame_VISU&lt;br/&gt;
On that frame, I assign the "OnMouseClick" Input, which is configured to execute the following code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;Test_PRG.TestVar2:= Test_PRG.TestVar2 + 1;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The OnMouseClick event of the frame works, I can see the variable counting up.&lt;br/&gt;
However, the checkbox variable doesn't work&lt;/p&gt;
&lt;p&gt;I would expect to see a click event transfer through to underlying frames.  Is it supposed to work that way?  I can't find any information about this.&lt;/p&gt;
&lt;p&gt;The same happens with an invisible input object.  The click event is only handled on the invisible input, but any elements below it are not.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>