Hi all. I'm sorry to have to ask a question about how to work with child windows since the topic seems to have been discussed at length and most people are probably getting tired of it, but...
I have attempted to write a program that allows me to display images as child windows BUT limits where inside the main front panel they can be dragged to. I have done this by using a sub-vi as a child inside the main window and having its properties set such that you can't tell it is another window (no title bar, etc). Then, I attempted to display images as children in that sub-vi window. The effect is that it appears that the image is a child in the main window (actually in sub-vi window) but it cannot be dragged outside a particular region in the main panel. I hope that makes sense (I attached my code so you can see). This seems to work just fine except that I can't seem to get it to allow me to make more than one image a child window of the sub-vi panel (I suppose that would make it a grandchild?). I can make more than one image a child of the main panel with exactly the method I have used, but it doesn't seem to work for the sub-vi panel.
I have used a couple "make child" examples I found in the discussion forum for this task. I have to admit to not really understanding how they work, which may be why I can't get this to work. I had to use a different make child example for the sub-vi than the one I used for the images and I don't understand the difference. Finally, I don't understand why sometimes the references are opened and then closed, and sometimes they are not closed. I don't know if this is an oversight or intentional. Note, the code I am sending is a modification of what I found on the forum to try to get my particular task to work.
The questions about the difference between the "make child" and "make IMAQ child" examples and the thing about the references are secondary. I suppose I don't really need to understand that if someone could just help me to get more than one image displayed as a child in the sub-vi window.
I'm sorry for the long winded explanation. I am just trying to ensure that what I tried to do, what I want to do, and what I don't understand, are clear. Thank you for your time.