CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sat Nov 18, 2017 10:14 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Drag and Drop Dialogs
PostPosted: Fri Dec 16, 2016 6:21 pm 

Joined: Sun Dec 11, 2016 12:27 am
Posts: 1
Is it possible to Drag and Drop a dialog in visualization? Let's say my dialog is configured to open in the center of the screen, but is masking an indicator I'd like to monitor. It would be nice to have the ability to just drag and drop my dialog window at a new location. I was thinking to use mouse events that are built in visu such as mouse down, mouse move and mouse up, but I need a way to get the current cursor position (X and Y) into a variable in the PLC.
Has anyone tried this?

PostPosted: Wed Dec 21, 2016 8:41 pm 

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 42
To get the current cursor X/Y coordinates you can use GetLastMouseMoveEvent in the SysTargetVisu23 library. I have thought of trying this for other elements but not for dialogs.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited