08-21-2006 03:12 PM
08-22-2006 07:19 AM - edited 08-22-2006 07:19 AM
I think the easiest way to do this is to create a small canvas, set the background to transparant and draw your arrow using the CanvasDrawPoint function. The code below should draw you a nice arrow (make sure the canvas is large enough).
SetCtrlAttribute (pnl, PNL_CANVAS, ATTR_PICT_BGCOLOR, VAL_TRANSPARENT);
CanvasDrawLine (pnl, PNL_CANVAS, MakePoint (0, 8), MakePoint (30, 8));
CanvasDrawLine (pnl, PNL_CANVAS, MakePoint (23, 1), MakePoint (30, 8));
CanvasDrawLine (pnl, PNL_CANVAS, MakePoint (23, 15), MakePoint (30, 8));
I think it doesn't take too much time to figure out which coordinates to use to make the arrow point to another direction...
Success,
Wim
Message Edited by Wim S on 08-22-2006 02:20 PM
08-22-2006 09:44 AM
I'm not sure this will meet your rotating requirements, but also check out this thread....
http://forums.ni.com/ni/board/message?board.id=180&message.id=24232#M24232