Jump to content

How to bring FP window NOT on top?


Recommended Posts

Hi,

I have a few front panels which are top level VIs (tasks running in parallel) and I'd like to be able to manage their position, not (X,Y) position on the monitor, but which FP "first/second/third/etc" on top.

I know I can bring a specific FP window on top, but I also would like to be able to bring a FP window "from top to bottom", can this be done in LV VI Server or do we have to use some "SetWindow..." from the user32.dll ?

Thanks in advance for any help

Link to comment

Thanks, technically this is does exactly what I need.. I was just hopping we could do the same using VI Server in order to be more cross-platform :-o

It looks like it should work, but it can only set the window to the top (or bottom?). I did a little more reading after posting at msdn and it does not set z-order as simply as I expected after looking at the NI example. You could loop through your windows in reverse order setting each one to the top to get your desired order, but that might be ugly.

Link to comment

It looks like it should work, but it can only set the window to the top (or bottom?). I did a little more reading after posting at msdn and it does not set z-order as simply as I expected after looking at the NI example. You could loop through your windows in reverse order setting each one to the top to get your desired order, but that might be ugly.

Well.. yes.. fortunately I have only 2 FP windows to manage at the same time (I have alot in fact but only 2 are displayed at the same time and I need to be able to choose which one is on top), so when the "secondary" FP window comes to top (over the main window), it first get the hWnd of the foreground window so that it can set back the main window to foreground when it has to go back to "second layer".

It just bugs me that it's not cross-platform :(

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.