Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 11:58:17 +0000



Post From: GDI text scrolls with prices

[2015-07-12 18:12:23]
User231363 - Posts: 31
I have written a GDI program in ACSIL that draws rectangles which (correctly) stay at the same position in the chart window all the time.
But, if I add GDI text, the text scrolls as the chart price axis is adjusted. I have tried 2 methods of adding GDI text without success.
    TextOut(hDC, meterLeft, askBarTop, TEXT("50000"), 6);
    DrawText(hDC, TEXT("45000"), strlen("45000"), &rec, DT_TOP | DT_LEFT);


Is there a special setup for GDI text in SC that I should be using to keep the text at the same window position?

thanks!