<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get Visu button position and size to open dialog via script depending on button location in screen</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/cbd6e10d2b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/cbd6e10d2b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/cbd6e10d2b/</id><updated>2020-10-26T00:02:10.880000Z</updated><subtitle>Recent posts to Get Visu button position and size to open dialog via script depending on button location in screen</subtitle><entry><title>Get Visu button position and size to open dialog via script depending on button location in screen</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/cbd6e10d2b/?limit=25#9f13" rel="alternate"/><published>2020-10-26T00:02:10.880000Z</published><updated>2020-10-26T00:02:10.880000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.com92bfe28ef228d0b35bce6a63f7adbdbac7603eff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you configure the command to open a dialog box, you can specify X and Y position.&lt;br/&gt;
So the simplest solution is to set X and Y position of the dialog box for each command button.&lt;/p&gt;
&lt;p&gt;There are some examples of mouse position management in the CODESYS store ("Visualization Elements" for example). You can therefore obtain the position of the mouse and calculate the display position of the dialog box.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get Visu button position and size to open dialog via script depending on button location in screen</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/cbd6e10d2b/?limit=25#91d8" rel="alternate"/><published>2020-10-24T08:43:53.822000Z</published><updated>2020-10-24T08:43:53.822000Z</updated><author><name>paulolouro</name><uri>https://forge.codesys.com/u/paulolouro/</uri></author><id>https://forge.codesys.com18952d7df9c392a83268a316f0848a1c4c756aa1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have been investigation how to implement a open dialog at specific position in screen, depending on the clicked element size and position.&lt;/p&gt;
&lt;p&gt;Is there a way to grab the position and size of the element we click on, then pass this into a function to calculate where to open the pop up? &lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/example_popup.png" width="50%"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>