LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw Lines/Arrows with CVI

Hello,

 

Can I draw arrows with cvi?

0 Kudos
Message 1 of 5
(3,952 Views)
Yes. On a graph control, you could use annotations; you could use the function SetAnnotationAttribute with ATTR_ANNOTATION_ARROW_STYLE to define the style of your arrow.
0 Kudos
Message 2 of 5
(3,935 Views)

Hello Letty,

 

You may also want to take a look at this forum post which shows how to use a canvas control to draw a line.

 

Regards,

0 Kudos
Message 3 of 5
(3,899 Views)

Brandon,

 

Let me try that out. I want the line/arrow to behave like a control/component whose attributes I can change. Is that possible?

 

0 Kudos
Message 4 of 5
(3,883 Views)

Letty,

 

What kind of attributes are you referring to?

 

If you need to change the size programmatically; 

- Start with an arrow picture you draw using IrfanView and save it as PNG with a transparent background.

- Put a picture control on your UI and set it to resize the picture according to control size

- Make the background of the picture control transparent using the color palette of CVI user interface editor.

- Assign the picture file of control as the file you saved in IrfanView.

 

Hope this helps, 

 

S. Eren BALCI
IMESTEK
0 Kudos
Message 5 of 5
(3,878 Views)