likemike Posted March 19, 2021 Share Posted March 19, 2021 Hello! Is there any way to place a text on UnimCanvas (something like TextOut)? Regards Mike Link to comment Share on other sites More sharing options...
Sherzod Posted March 19, 2021 Share Posted March 19, 2021 11 minutes ago, likemike said: Is there any way to place a text on UnimCanvas (something like TextOut)? Hello, Link to comment Share on other sites More sharing options...
likemike Posted March 19, 2021 Author Share Posted March 19, 2021 Thanks - I haven't found it. Link to comment Share on other sites More sharing options...
likemike Posted March 19, 2021 Author Share Posted March 19, 2021 Hello! How can I rotate the text by 90°? I've tried me.rotate(PI/2) but this won't work. Any tipps? Regards Mike Link to comment Share on other sites More sharing options...
Sherzod Posted March 20, 2021 Share Posted March 20, 2021 Hello, 7 hours ago, likemike said: me.rotate(PI/2) Try this: me.rotate(Math.PI/2) Link to comment Share on other sites More sharing options...
likemike Posted March 20, 2021 Author Share Posted March 20, 2021 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 More sharing options...
Sherzod Posted March 20, 2021 Share Posted March 20, 2021 I will check. Link to comment Share on other sites More sharing options...
Recommended Posts