Hello,
is there any way to dynamically change the position of a popup window by scripting in iX for PC?
Thanks,
Federico.
Moving a popup window
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Moving a popup window
Here is code that you can use to move a popup window. In this case there are buttons on a popup screen that can be used to move the window.
Code: Select all
namespace Neo.ApplicationFramework.Generated
{
using System.Windows.Forms;
using System;
using System.Drawing;
using Neo.ApplicationFramework.Tools;
using Neo.ApplicationFramework.Common.Graphics.Logic;
using Neo.ApplicationFramework.Controls;
using Neo.ApplicationFramework.Interfaces;
//Screen2 is a popup window
public partial class Screen2
{
//On button click move popup left
void btLeft_Click(System.Object sender, System.EventArgs e)
{
this.Left -= 50;
}
//On button click move popup right
void btRight_Click(System.Object sender, System.EventArgs e)
{
this.Left += 50;
}
//On button click move popup up
void btUp_Click(System.Object sender, System.EventArgs e)
{
this.Top -= 50;
}
//On button click move popup down
void btDown_Click(System.Object sender, System.EventArgs e)
{
this.Top += 50;
}
}
}
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer