LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Some questions about Canvas Control

Hello:

 

I have some questions about cvi canvas:

 

(1) I want to show a lot of pictures in the canvas, then I want to select one of these pictures with the mouse, how can I know the mouse position is in one of these picture area? 

(2) If I realize (1)'s function, I want to zoom in and zoom out the selected picture like this 20923i5EF753C1126349A2. Through the eight points on the border to zoom in and zoom out the selected picture.


(3) I want to move the selected picture to a new position in the canvas, how can I realize this? I only want to move one of these pictures , not scroll the  canvas.

 

Thanks.

 

Mark

0 Kudos
Message 1 of 3
(3,223 Views)

canvas可以load多个图片吗?

District Sales Manager | Shanghai Pudong, China
0 Kudos
Message 2 of 3
(3,207 Views)

I'd venture to suggest suggest that you will be better off using a graph control rather than a canvas control. Each time you plot an object on a graph control, you get a plot handle returned that enables you to manipulate that object (e.g. to move it). With a canvas control, to move an object you would have to redraw the whole control.

--
Martin
Certified CVI Developer
0 Kudos
Message 3 of 3
(3,196 Views)