01-14-2008 07:44 AM
01-14-2008 08:37 AM
01-15-2008 11:09 AM
Hi,
You mentioned that you are utilizing an image from a camera. Are you using NI IMAQ products? If so, here is a KnowledgeBase article that may help you with using the IMAQ Overlay VIs. Happy coding!
01-16-2008 01:06 AM
Hello,
I tried placing a picture indicator - but it sits behind the ActiveX control.
Changing the image would be problematic since it's a live video image.
I am not using IMAQ products.
There has to be a way to run a sub-VI, make it floating, and also transparent background.
Another option: how do DVD players make their remote control window have any shape they want? Maybe I can give my sub-VI's window the shape of a crosshair instead of a rectangle. If the sub-VI is floating, it sits on top of the activex control.
Thanks,
Nitzan
01-16-2008 03:39 PM
Hi,
This KnowledgeBase article describes how to make a VI transparent. Perhaps you could set a subVI to this property.
01-17-2008 03:23 PM
Thanks for the tip - it'll be useful when I upgrade to 8.0 (planned for when my boss is in a good mood 😉
Is there any way (programatically) to make the VI transparent on version 7.1?
Meanwhile I found a way around that isn't very comfortable, but may interest a few:
To make a cross-hair I place two sub-VIs. One is a vertical line, the other is a horizontal line.
In the VI that I use, the block diagram is just an endless while loop. The front panel is blank and painted yellow. The required stop button is placed out of the way. I customised the window appearance to show nothing but the inside of the front panel.
In my main VI I use a reference to open the sub-VI. I resize the window panel to 100x1 to get just a thin yellow line appear. I do this twice (1x100 the second time) to get the crossing line.
I'm working on a demo for this, coming soon.
Nitzan
01-18-2008 04:24 AM
OK, here's the demo I promised.
This demo shows a trick to overlay a decoration or anything else over your VI, over any ActiveX control, and, actually, over your entire monitor screen. This demo also shows how to use template VIs and how to programatically open occurances of a VI.
I hope anyone likes it, is ammused by it, or better yet - finds it useful!
Nitzan
01-18-2008 05:08 AM
01-18-2008 03:37 PM
Hi,
That is awesome! Thanks for sharing.