Page 1 of 1
Moving a popup window
Posted: Fri Apr 13, 2012 9:09 am
by fsturlese
Hello,
is there any way to dynamically change the position of a popup window by scripting in iX for PC?
Thanks,
Federico.
Re: Moving a popup window
Posted: Mon Apr 16, 2012 9:28 am
by mark.monroe
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;
}
}
}