Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Moving a popup window
PostPosted: Fri Apr 13, 2012 9:09 am 

Joined: Tue Nov 22, 2011 11:57 am
Posts: 32

Offline
Hello,
is there any way to dynamically change the position of a popup window by scripting in iX for PC?

Thanks,
Federico.


 Profile  
 
 Post subject: Re: Moving a popup window
PostPosted: Mon Apr 16, 2012 9:28 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
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:
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


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

All times are UTC - 7 hours [ DST ]


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: