Support Board
Date/Time: Tue, 26 Nov 2024 18:27:44 +0000
Post From: BUT: ACSIL UTF8 characters with new graphics functions not working
[2023-11-01 07:33:38] |
erwinbeckers - Posts: 22 |
I'm trying to draw some UF8 symbols on my chart like arrows, circles, rectangles but the new graphics functions don't show them Here is a small snippet of what I'm trying to do: SCInputRef bar_marker = sc.Input[0]; if (sc.SetDefaults) { ... bar_marker.Name = "UTF8 symbol"; bar_marker.SetString(u8"➘"); ... } sc.p_GDIFunction = on_render(); void on_render(HWND WindowHandle, HDC hdc, SCStudyInterfaceRef sc) { sc.graphics.SetBackgroundMode(TRANSPARENT); sc.graphics.SetTextColor(0xff0000); sc.graphics.SetTextAlign(TA_NOUPDATECP | TA_LEFT); auto bar_marker = sc.Input[0].GetString(); sc.graphics.DrawTextAt(bar_marker, 100,100); } |