Jump to content

Text on UnimCanvas


likemike

Recommended Posts

Hello!

With this code the text won't rotate:
     

  UnimCanvas1.JSInterface.JSCode(
        'var me='#1'._cc_; if (me) {'+
        'me.rotate(Math.Pi/2); '+
        'me.fillStyle="'+uniColor2Web(clBlack, 1)+'";'+
        'me.font="16px sans-serif";'+
        'me.fillText("Hello UniGui", '+IntToStr(x1)+', '+IntToStr(y1)+')'+
        ' };');

Maybe wrong syntax?

Link to comment
Share on other sites

×
×
  • Create New...