Helmut Hort Posted May 30, 2012 Share Posted May 30, 2012 Hi Farshad, how can I place a text into a unigui canvas field? Can You or anyone else give me a code example? Best regards Helmut Link to comment Share on other sites More sharing options...
zilav Posted May 30, 2012 Share Posted May 30, 2012 UniSession.AddJS(Format('var ctx=document.getElementById("%s_canvas").getContext("2d"); ctx.font="bold 16px Arial"; ctx.fillStyle = "blue"; ctx.fillText("Hello!", 40, 40);', [uniCanvas1.JSName])); More on topic http://diveintohtml5.info/canvas.html#text Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now