LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create an SDI application in LabView like in Visual C++

I want to make a SDI application in LabView, but i dont know if it is possible.
If it is.. Please tel me how
0 Kudos
Message 1 of 6
(3,415 Views)
What is SDI?
0 Kudos
Message 2 of 6
(3,415 Views)
In Visual C++ you can make an parent application like Microsoft Word..

You can create a new window, but the window can't be dragged out of the window.

Gr Johan
0 Kudos
Message 3 of 6
(3,415 Views)
Child windows you mean. There have been numerous threads on this subject. One can be found here. Do a search of this forum with 'child windows" as the subject and you'll find a lot mo
re.
0 Kudos
Message 4 of 6
(3,415 Views)
Acctually, MS Word is MDI (Multiple Document Interface);
LabVIEW is SDI (Single Document Interface). These two
interface have architectural difference. They are not
interchangable. Another words, one can't make LabVIEW
looking and acting like MS Word. However, If all you
want is to confine a VI within another, a simple Window
API call (SetParent) will do the trick. You also have
to take care of the window position shift and the
flickering caused by the position shift. There is a pit
fall while using child window in LabVIEW: since LabVIEW
is SDI, and front panel & diagram are "a pair", you
should switch the child window back to top window before
you close the parent window. Otherwise, LabVIEW will
crash.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 5 of 6
(3,415 Views)
> Acctually, MS Word is MDI (Multiple Document Interface);
> LabVIEW is SDI (Single Document Interface). These two
> interface have architectural difference. They are not

I hate to get picky on this one, but feel like I should jump in here and
defend LV. SDI tends to be a dirty word since simple apps like notepad
are just SDI whereas real window applications are MDI.

Taken for what the acronyms mean, you have single and multiple document
interface. Notepad can only have one document open at a time. LV can
have multiple docuements open, they are just placed in top level
windows. So what do you call it?

Besides, are we talking about today's Word? Since 2000, I think word
has worked like Internet Explorer and LV. Hit Ctl-N and it opens a
new
top level window. The editor and document are bound together into a
single top level window.

So, I'm not sure what to call it, but it isn't really SDI. Now back to
regularly scheduled programming.

Greg McKaskle
0 Kudos
Message 6 of 6
(3,415 Views)