<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Result of built-in MessageBox opened from a button</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/</id><updated>2020-06-15T13:25:07.617000Z</updated><subtitle>Recent posts to Result of built-in MessageBox opened from a button</subtitle><entry><title>Result of built-in MessageBox opened from a button</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/?limit=25#8da3" rel="alternate"/><published>2020-06-15T13:25:07.617000Z</published><updated>2020-06-15T13:25:07.617000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.coma8fd1314defb876c926b7a39a1b330308c3bf81b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Result of built-in MessageBox opened from a button</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/?limit=25#e500" rel="alternate"/><published>2020-06-15T10:33:10.825000Z</published><updated>2020-06-15T10:33:10.825000Z</updated><author><name>marci4</name><uri>https://forge.codesys.com/u/marci4/</uri></author><id>https://forge.codesys.com8edb223be38c42ccc6665fb145e5031ec3e50fb5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My bad, enum is hidden.&lt;/p&gt;
&lt;p&gt;The reason is pretty simple.&lt;br/&gt;
The dialog result (e.g. cancel, yes) are used in different dialogs to write back the values e.g. only when OK is pressed.&lt;br/&gt;
The messagebox is designed the same way.&lt;/p&gt;
&lt;p&gt;The "problem" is that there is no nice way to access the result of the dialog via input action.&lt;br/&gt;
I added an improvement for this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Result of built-in MessageBox opened from a button</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/?limit=25#2072" rel="alternate"/><published>2020-06-15T10:24:41.905000Z</published><updated>2020-06-15T10:24:41.905000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com2712599fa8a0c3151ca6bb50d2750cc23f197d6b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks. I am on 3.5.14, so I cannot see definition of VisuElems.Visu_DialogResult (I noticed that it is '6' for Yes and '7' for no, STRING since the formatter is %s, right?). Is it defined in an enumeration?&lt;br/&gt;
Also, I still wonder why not the implementers just use a VAR_IN_OUT variable instead of requiring this hairy workaround. I am puzzled, I am sure there IS a reason, but I cannot understand what it is.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Result of built-in MessageBox opened from a button</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/?limit=25#305a" rel="alternate"/><published>2020-06-15T09:44:10.467000Z</published><updated>2020-06-15T09:44:10.467000Z</updated><author><name>marci4</name><uri>https://forge.codesys.com/u/marci4/</uri></author><id>https://forge.codesys.com5c9582bdb26bdd16b6bf9bd64384ebcd5337698c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello &lt;a class="user-mention" href="/u/sgronchi/"&gt;@sgronchi&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;you can receive the result with the attached example.&lt;/p&gt;
&lt;p&gt;Just keep in mind to check the box for active visualizations in the visu manager.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Result of built-in MessageBox opened from a button</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9939de4ce7/?limit=25#93a2" rel="alternate"/><published>2020-06-09T19:14:12.830000Z</published><updated>2020-06-09T19:14:12.830000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com0ec57a8e0c3b9b3e6d4193d0fab95c08368a299a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
anyone knows how to get the Yes/No or Ok/Cancel answer from the VisuDialogs.MessageBox?&lt;br/&gt;
Digging into the library, the related visualization has only input, no output or in_out, so it must have another way to communicate which button was pressed (if not, what's the point to have two buttons in the first place?), but I was not able to find it.&lt;br/&gt;
It should be opened by pressing on a (visualized) button.&lt;br/&gt;
Or am I forced to make a custom dialog from scratch to return the pressed button?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>