__Graphics.DrawString
__Graphics.DrawString
__Graphics.DrawString incorrectly draws russian text (CP_1251).
What did you mean by incorrectly ?
It draws nothing at all , or partial ?
It uses default codepage therefore if your pc default language is not Russian then this might happen
But this is a common issue with ANSI applications ,since the data (string) comes from an ANSI built application
Plugins or modules have nothing to do more , unfortunately
It draws nothing at all , or partial ?
It uses default codepage therefore if your pc default language is not Russian then this might happen
But this is a common issue with ANSI applications ,since the data (string) comes from an ANSI built application
Plugins or modules have nothing to do more , unfortunately
Hello!
Thanks for the answer.
My computer is set to Russian by default.
I tested MetroCheсkBox example, and it displays Russian text in Western European encoding instead of Cyrillic.
Thanks for the answer.
My computer is set to Russian by default.
I tested MetroCheсkBox example, and it displays Russian text in Western European encoding instead of Cyrillic.
Can you copy the Graphics.a within the attached zip file
to follwing path and try again ?
to follwing path and try again ?
Code: Select all
{ProgramFiles}\AmsPluginMaker\Data\Modules\Graphics
- Attachments
-
- Graphics.zip
- (44.32 KiB) Downloaded 572 times
Thanks so much for the fix!)
A small bug.
Incorrect display of the Wingdings font.
A small bug.
Incorrect display of the Wingdings font.
Try replacing the "ü" with
withing the scope of following line
Code: Select all
tostring("\252")
Code: Select all
if(m_Checked == true) then
Code: Select all
__Graphics.DrawString(graphics,brs_check,tostring("\252"),Width-corner_size,0,corner_size,corner_size,"Wingdings",20,FontStyleBold,StringAlignmentFar,StringAlignmentNear);
Note: Before replacing the graphics.a module, the Wingdings font was displayed correctly, see the first screenshot.
For now you can use a 16x16 png icon for that
The internal text conversion function takes a code page attribute and ,it requires CP_SYMBOL to be specified in order to display charaters from symbolic fonts
You can also use GDI functions to draw symbols as well ,if you are familiar with it
Maybe i can update this module later for this chage , but it will work perfectly for regular text anyway
The internal text conversion function takes a code page attribute and ,it requires CP_SYMBOL to be specified in order to display charaters from symbolic fonts
You can also use GDI functions to draw symbols as well ,if you are familiar with it
Maybe i can update this module later for this chage , but it will work perfectly for regular text anyway
Thank you very much!)