Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Script for setting IX runtime Topmost/not topmost
PostPosted: Fri Feb 08, 2013 12:58 am 

Joined: Fri Feb 08, 2013 12:41 am
Posts: 1

Offline
Hi

I am building an IX 2.0 application where i am starting an VNC viewer program with a "RUN" command attached to a button . this is working really well every time the VNC Wiever reaches the VNC server , but if it fails the viewer window opens behind my IX runtime . I have unchecked the "Topmost " in the settings menu on IX , but it looks for me like the IX is executed as the topmost application anyway when the runtime starts on the computer.

My question is (tough i am not so experienced with C# yet .) : Is there anyone who can show me how to make a script that tells the IX that it should not be the topmost application ?. I have found the Topmost property in the scripthelp files in IX ,but are unsure how the script should look like. ?


 Profile  
 
 Post subject: Re: Script for setting IX runtime Topmost/not topmost
PostPosted: Fri Feb 08, 2013 9:25 am 

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

Offline
If you turn "Top Most" back on, does the VNC viewer start behind iX Developer when it works? I think that the issue is with your VNC viewer, not with iX Developer. If you launch your VNC application using the below code, and top most is turned off, then it is up to the VNC application to decide where it wants to be on the screen. It sounds like your VNC application is programmed to put itself behind any windows that are currently open on your screen if it errors.

You can play with this using the explorer.exe application and see how it behaves when top most is turned on or off.

Code:
   using System.Diagnostics;
//Starts the Explorer process
         ProcessStartInfo startInfo = new ProcessStartInfo("explorer.exe");
         startInfo.WindowStyle = ProcessWindowStyle.Maximized;

         Process.Start(startInfo);

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