dotted line in WebCanvas?

How can I draw a dotted line in a WebCanvas using DrawLine?
Can I call javascript to draw the line for me?

Javascript would not work for drawing to a WebCanvas. Drawing should be the same as drawing to a standard canvas in a desktop app.

Check out these threads from the forum
Dotted/Dashed Bezier Curves
Simple way to draw a dotted line

Really? Somethings missing here.
I would think this would be a pretty standard request.
And apparently it has been judging by your threads.

Dotted lines in JavaScript or CSS do not seem simple at all http://stackoverflow.com/questions/4576724/dotted-stroke-in-canvas

The worst seems to be that CSS line style does not seem to have the same support in all browsers.

ctx.setLineDash([6, 2]);
ctx.strokeStyle = "#A80036"
ctx.moveTo(cx, y+h);
ctx.lineTo(cx, canvas.height);
ctx.stroke();
ctx.setLineDash([]);

twernt hard at tal

W3Schools.com rocks :wink:

[quote=192275:@Brian O’Brien] ctx.setLineDash([6, 2]); ctx.strokeStyle = "#A80036" ctx.moveTo(cx, y+h); ctx.lineTo(cx, canvas.height); ctx.stroke(); ctx.setLineDash([]);
twernt hard at tal[/quote]
The problem is that refreshes are managed by our framework. If the code doesn’t originate in your app, it’ll disappear the next time around.