<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/</id><updated>2022-04-05T07:11:16.434000Z</updated><subtitle>Recent posts to IVisualizationDialog.SetInterface does not seem to work at all</subtitle><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#08ea" rel="alternate"/><published>2022-04-05T07:11:16.434000Z</published><updated>2022-04-05T07:11:16.434000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com3566a6b0b9e9a30d55fd76b1c910823fa357a298</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'll look into it. Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#8bba" rel="alternate"/><published>2022-04-04T09:01:35.124000Z</published><updated>2022-04-04T09:01:35.124000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comb28b4e0c0e94003eb6f6ad2f31074a6cacca30e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not gonna claim this is the "right" way.&lt;br/&gt;
But we have some challenges ahead and the right way may change ;)&lt;/p&gt;
&lt;p&gt;You can find an example for the IKeyEventHandler. If HandleKeyEvent returns true, the key press will be dropped.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#5630" rel="alternate"/><published>2022-04-04T06:22:06.534000Z</published><updated>2022-04-04T06:22:06.534000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.coma6c0f687fb3168b5fbd6497c4385164cacb95cec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Home, End, Esc, Tab, Up, Down, Enter.&lt;/p&gt;
&lt;p&gt;How would you do it? &lt;/p&gt;
&lt;p&gt;For the time being I had to redirect every call to a global memory area, but I am still interested in making this work the "right" way.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#64aa" rel="alternate"/><published>2022-04-04T05:31:35.911000Z</published><updated>2022-04-04T05:31:35.911000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com1a747123bd01b18f58feab54834aa24b39fd4400</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oh I see, that will make things way more difficult ;D&lt;/p&gt;
&lt;p&gt;Assuming that they display keys are mapped to a tab+enter/return (which it looks like since the action is executed), we could filter out the enter/return key.&lt;br/&gt;
You think that would solve the problem and you could use the normal keyboard handling?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#5a6d" rel="alternate"/><published>2022-04-01T06:58:23.480000Z</published><updated>2022-04-01T06:58:23.480000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com623ec6ce353b85aa1dd314f1a9f529ef9ea4095b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I was not referring to the Codesys IDE, but to the TargetVisu runtime. The problem is that a display key is mapped as "Tab", another as "Up" and so on. This is at the OS level (Linux embedded), fixed.&lt;/p&gt;
&lt;p&gt;So if I activate "Standard keyboard handling" and I press the key that generates a "Tab" keypress, it moves focus {instead of}/{in addition to} doing the action associated with that key in the code. Same for Up, Down, Home, End and so on. These keycodes have no special meaning attached, the manufacturer could choose to map them as F15, F16, F23, "w", "$", or any other keycode. Unfortunately it chose keycodes that clash with Codesys keyboard handling.&lt;/p&gt;
&lt;p&gt;I did remember that selection by IEC code worked half of the time on the hardware, worked right on Control Win. On the panel pressing Up and Down with standard keyboard handling moved Up and Down, but since I do not have Left and Right movement was a bit weird (it resulted in moving diagonally to the right in a W pattern, not being able to select some keys and not being able to come back to the left part).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#73d1" rel="alternate"/><published>2022-04-01T06:05:12.777000Z</published><updated>2022-04-01T06:05:12.777000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com78f06012d123bbde4c480e82f67e19d778423812</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you are using a target visualization (a panel with a screen and the runtime is running on that panel) then the CODESYS IDE has no part in handling events.&lt;br/&gt;
This is all done by the visualization, which collects the events, passes them to IEC where the visu task handles them and then draws the changes to the screen again.&lt;/p&gt;
&lt;p&gt;Anything special which did not work?&lt;br/&gt;
Yes, the selection example is controlling the keyboard handling, which you do have to activate.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#a657" rel="alternate"/><published>2022-03-31T14:21:48.998000Z</published><updated>2022-03-31T14:21:48.998000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com8cb17beee1f9d64bf1a3a0b4ed983c1dfd0563a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes. But these action could be intertwined with touch actions.&lt;/p&gt;
&lt;p&gt;I tried the stock selection example, but it "worked" only if I activated the "Standard keyboard handling" (and it did not work at 100%). Unfortunately the display own keys (some are mapped to the arrows, some to Tab, some to Enter and so on) cease to work correctly, because the keypresses are interpreted by Codesys instead of just being forwarded to the visualization (that already handles them).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#bf96" rel="alternate"/><published>2022-03-31T14:13:03.705000Z</published><updated>2022-03-31T14:13:03.705000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com536c05f51bbc2a5f1361478cb0ac96e9046e5cd2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I would assume then that with the turn of a wheel you want to jump from a Q to a W to a E etc etc? &lt;br/&gt;
Also pressing a specific button on the CAN keypad will open the dialog and another one is like an Enter?&lt;/p&gt;
&lt;p&gt;If that is the case your solution could also be to use the keyboardhandling and move the selection on each wheel turn with the selectionmanager.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#b909" rel="alternate"/><published>2022-03-31T14:02:50.461000Z</published><updated>2022-03-31T14:02:50.461000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com7cd074fe08770178a3d37ebaf3fd7c9fbbe5a015</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The keyboard must be controllable both by touchscreen and by CAN keypad (similar to the Grayhill one, with a wheel and some keys).&lt;/p&gt;
&lt;p&gt;On some machine models the display does not have the touchscreen, so IEC control is the only way, on other models the user could open the keyboard from CAN but then proceed to write by touchscreen and then confirm/cancel via CAN (or via touch).&lt;/p&gt;
&lt;p&gt;So the "presses" can be intermixed from touch and CAN (thus there is an event queue which guarantees serialization, even if the event from IEC side come at a faster rate, like a burst of 5 events, 20 ms apart when the VISU_TASK is running at 200 ms cycle time). Also, in this way no CAN movement interferes with a direct touch press.&lt;/p&gt;
&lt;p&gt;Either I change the local dialog store area, or I use a global store and then dialog interface is not used at all (on the TargetVisu, at most one keypad at a time will ever be present).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>IVisualizationDialog.SetInterface does not seem to work at all</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/fb40c9d153/?limit=25#a440" rel="alternate"/><published>2022-03-31T06:24:25.357000Z</published><updated>2022-03-31T06:24:25.357000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comc3d0b0836fffee1de12d7407785310e2d6c17ca0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Could you maybe help me understand exactly what you are trying to do?&lt;br/&gt;
If I understand you correctly, you try to enter values into the keyboard via IEC?&lt;br/&gt;
Why do you have this requirement and what is the goal you are trying to achieve?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>