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 Quote 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.