<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to FileDialog - OnDialogClosed not called anymore</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4dc90023a9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4dc90023a9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/4dc90023a9/</id><updated>2025-04-25T12:33:10.942000Z</updated><subtitle>Recent posts to FileDialog - OnDialogClosed not called anymore</subtitle><entry><title>FileDialog - OnDialogClosed not called anymore</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4dc90023a9/?limit=25#dcdf" rel="alternate"/><published>2025-04-25T12:33:10.942000Z</published><updated>2025-04-25T12:33:10.942000Z</updated><author><name>manuknecht</name><uri>https://forge.codesys.com/u/manuknecht/</uri></author><id>https://forge.codesys.com8ba50284dd5aae62533879683edf82ad97afa596</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I had similar issues with the OnDialogClosed not being called. I realized that this behaviour is resolved, when the according visualization object on which the input configuration is set is moved to the foreground. Somehow, the object has to be one of the lowest elements in the Element List (i.e. in the foreground) for it to work.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>FileDialog - OnDialogClosed not called anymore</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4dc90023a9/?limit=25#a617" rel="alternate"/><published>2024-12-18T14:02:55.382000Z</published><updated>2024-12-18T14:02:55.382000Z</updated><author><name>dominggus</name><uri>https://forge.codesys.com/u/dominggus/</uri></author><id>https://forge.codesys.comf90c3080f2e0bb9aced08dbf2beef7738bc77741</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;updated to CODESYS Visualization 4.7.0.0, still not working...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>FileDialog - OnDialogClosed not called anymore</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/4dc90023a9/?limit=25#0cdb" rel="alternate"/><published>2024-12-18T13:19:28.766000Z</published><updated>2024-12-18T13:19:28.766000Z</updated><author><name>dominggus</name><uri>https://forge.codesys.com/u/dominggus/</uri></author><id>https://forge.codesys.come757d1ead4e95f0b1dc2920a1d880e3202f8b81e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, since the latest update it seems the OnDialogClosed is not called anymore??&lt;/p&gt;
&lt;p&gt;(SP20 Patch 3 with CODESYS Visualization 4.6.0.0)&lt;/p&gt;
&lt;p&gt;I am using LoadWriteRecipe to load a recipe file from disk, and I need to run a function (Recipes_LoadFromRecipeData) afterwards which I execute when OnDialogClosed is closed with OK button.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="c1"&gt;// the DialogManager is provided via the implicitly available VisuManager&lt;/span&gt;
&lt;span class="nx"&gt;dialogMan&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:=&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nx"&gt;VisuElems&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;g_VisuManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;GetDialogManager&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;
&lt;span class="nx"&gt;IF&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;dialogMan&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;AND&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pClientData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;THEN&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nx"&gt;FileOpenCloseDialog&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;dialogMan&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;GetDialog&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="nx"&gt;VisuDialogs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;FileOpenSave&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;// gets the FileOpenSave dialog&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nx"&gt;IF&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;FileOpenCloseDialog&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;THEN&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;FileOpenCloseDialog&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;GetResult&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;// gets the result (OK, Cancel) of the dialog&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nx"&gt;IF&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;VisuElems&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;Visu_DialogResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;OK&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;THEN&lt;/span&gt;
&lt;span class="w"&gt;            &lt;/span&gt;&lt;span class="nx"&gt;Recipes_LoadFromRecipeData&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nx"&gt;END_IF&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nx"&gt;END_IF&lt;/span&gt;
&lt;span class="nx"&gt;END_IF&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This used to work in CODESYS v3.5 SP20 Patch 1, but it seems it doesn't work anymore?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>