Jump to content

In the Same Window ... How?


Recommended Posts

Hello All ,

I have just created a LabVIEW programe to open VI files from a main one when pressing

a button , but the problem is that the new VIs panels are opened in new windows

How can i open the desired VI in the same window of the main one ???

Besides , How i can make the opened VIs to run just after being called from the main panel

Please , i wainting for your help !!

thanx a lot

Yours

Link to comment

QUOTE(ControlEngineer @ Mar 15 2007, 09:44 PM)

Hello All ,

I have just created a LabVIEW programe to open VI files from a main one when pressing

a button , but the problem is that the new VIs panels are opened in new windows

How can i open the desired VI in the same window of the main one ???

Besides , How i can make the opened VIs to run just after being called from the main panel

Please , i wainting for your help !!

thanx a lot

Yours

I'd try subpanels :)

Help->Find Examples -> Building User Interfaces -> General -> Simple SubPanel ...

Link to comment
  • 2 weeks later...

QUOTE(Eugen Graf @ Mar 15 2007, 05:55 PM)

You can ask position and bounds of the parent window and place your SubVIs in this Array or use SubPanel, how i2dx just told.

I personally find windows more usefull than SubPanel, because the user can move, resize and hide it.

Eugen Graf

Very true, but I know that I have thought many times of creating a child window framework using subpanels, that you could move/resize/cascade/minimize and so-forth.

Well the short of what i'm getting at is, hasn't anyone implemented this yet using subpanels?

The least that it would take is a custom sub-panel that had a standard title-bar that you could click and drag the sub panel around.

well, I know it's possible....

Link to comment

Using the Windows API to do MDI using the parenting functions is very simple and will save you all the hassle of having to deal with subpanels, but in my experience (with some of the older versions) it used to have some display problems under certain conditions. Also, obviously, it's Windows specific.

You can find some examples by searching the NI forums for MDI.

Link to comment

QUOTE(Michael_Aivaliotis @ Mar 25 2007, 04:06 PM)

Well well... looks like that's exactly what I was thinking minus the framework of also creating a manager.

I bet w/ the improvements in event registration and handling and xcontrols, this might have the potential to be a bit more fruitful this go around.

That is unless, you've actually developed this and don't feel like giving all that hard work out for free to the community. :thumbdown:

Link to comment

QUOTE(njkirchner @ Mar 26 2007, 06:17 AM)

I bet w/ the improvements in event registration and handling and xcontrols, this might have the potential to be a bit more fruitful this go around.

I have even a (hopefully) better idea, why not use an Xcontrol with an subpanel. In that case you could have maximize, minimize events handled inside the XControl.

Ton

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.