01-24-2008 04:03 PM
Solved! Go to Solution.
01-24-2008 06:24 PM
01-25-2008 10:43 AM
01-25-2008 11:03 AM
LabBEAN wrote:
Can I pass the ActiveX IPictureDisp handle to a front panel ActiveX control for display (e.g. the ActiveX equivalent of the LV Picture Indicator) to keep it in the ActiveX layer? Which control, and how do I install it?I don't think that would work.If not, have you successfully used OLE functions to convert the reference?Yes.Can this be done in LabVIEW? How would I load the libraries?I don't think so.George Zou
01-25-2008 12:51 PM
01-25-2008 02:24 PM
01-25-2008 02:59 PM
01-29-2008 09:22 AM
01-29-2008 10:03 AM
George,
I'm using LabVIEW 8.5. Again, thank you.
-B
02-04-2008 03:45 PM
Success!!
George and I took the discussion offline, and he guided me to the following solution:
How to display "stdole.picture" reference in an ActiveX control on the front panel:
(1) Drop an ActiveX container on the front panel.
(2) Right click and select "Insert ActiveX Object".
(3) Choose Microsoft Forms 2.0 Image.
(4) Pass this MS Forms 2.0 Image control reference (possibly through subVIs) to a property node (which will change to class "IImage").
(5) Select the "Enabled" property and wire (F).
(6) Select the "Picture(putRef)" or "Picture" property and wire the "stdole.picture" reference (also referred to as IPicture (NOT IPictureDisp according to George)]. This is "handler" in the attached PNG.
(7) Select the "Enabled" property and wire (T). [The purpose of the two enables is to force the ActiveX Image control to update]
NOTE: passing the stdole.picture reference out of the VI and executing the IImage property node later does NOT seem to work.
-- George also sells an Image Toolbox which assists with many other imaging functions --
http://www.geocities.com/gzou999/index.html
and click on "Image Toolbox" on the left....