Login Page - Create Account

Support Board


Date/Time: Tue, 21 Jan 2025 10:52:44 +0000



Post From: Adding Text with GDI Function to Study

[2018-08-09 19:46:59]
BlakJak - Posts: 108
I have been scratching my head with the way Sierra is handling GDI text drawing. In order to ensure my code was good, I wrote two programs, one in pure Win32 API and the other as a Sierra ACSIL study using the same drawing functions with the same parameters.

Attachments:
- Win32Example.cpp
- Win32ExampleOutput.png
- ExtendedGDIExample.cpp

As you can see from the output of the Win32 example, the yellow rectangle and the text is properly showing on the window. You can see the code under the WM_PAINT case in the WndProc callback.

It does not work properly with Sierra Charts in the extended GDI example I also attached. The yellow rectangle is drawn but the text does not appear.

I cannot understand why my code works in a standard Windows API program but does not in my Sierra GDI function code.

Please investigate further as I believe this proves that it is not a coding error but a potential bug in SC's GDI function handling.
attachmentWin32Example.cpp - Attached On 2018-08-09 19:46:06 UTC - Size: 4.4 KB - 684 views
imageWin32ExampleOutput.png / V - Attached On 2018-08-09 19:46:18 UTC - Size: 6.75 KB - 476 views
attachmentExtendedGDIExample.cpp - Attached On 2018-08-09 19:46:34 UTC - Size: 3.17 KB - 570 views