Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

View Image in a Tab Control using CVI

I am trying to embed several images in a Tab control in CVI.
Is it possible to attach an imaq vision image to a tab page and let windows/cvi do the show/hide image handling for me.
Or is it me who has to do the programming catching the EVENT_ACTIVE_TAB_CHANGE event?
 
I have seen the "Embed" sample to embed a imaq vision image in a parent window, but how does it work for tab controls?
 
Any help would be appreciated!
 
Regards,
Robin
0 Kudos
Message 1 of 3
(3,285 Views)
Yes this is possible if you use a canvas and draw the image as a bitmap on this. See the NI-IMAQ CVI example 'snap canvas.prj'. The advantage is that the canvas is automaticlly redrawn but this is slower then the imgPlot function that only uses a region to draw directly on a panel.
 
Hope this helps,
 
Regards
Karsten
0 Kudos
Message 2 of 3
(3,222 Views)

Thank you for your reply.

Unfortunately canvasses are not an option because I would like to use the imaq ROI toolbox window. This is not available in a canvas.

Any other ideas?

0 Kudos
Message 3 of 3
(3,220 Views)