|
|||
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Runtime change language in high DPI Delphi program
|
Moderated by: Sisusupport, Renate.Reinartz, Markus.Kreisel, Ilkka.Salmenius |
|
Runtime change language in high DPI Delphi program - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support | |||||||||||||||||
Author | Post | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
laurens Member
![]() |
I have a problem with Sisulizer in a DPI-aware Delphi application. The application works perfect in high DPI, also along multiple monitors with multiple DPI settings. The problem arrises if the user changes the language (resource) runtime with one or multiple forms shown. We do this using SetNewResourceFile in LaResource.pas. This loads the new resource file and will overwrite all properties of all components. This changes also the left, right, top, bottom, width, height, etc. of the components and thereby change the scaling of all forms and components. So, a form that is scaled 200% is 'reset' to 96ppi after this action. This behavior is not desirable. Does anybody have a suggestion how to solve this?
|
||||||||||||||||
|
| |||||||||||||||||
jaska Member
![]() |
Make TLaTranslator only translate string properties. Add this to the initialization of you main unit.
Last edited on Mon Jan 11th, 2021 06:12 pm by jaska |
||||||||||||||||
|
|
|||||||||||||||||
laurens Member
![]() |
Thanks! This solved my issue for now. However, I think it is still a bug (or missing feature ;-)) in Sisulizer. If you want to have -for example- labels with different width for each language, it does not work correctly. Although this is not a problem for us now, it can be for other users.
|
||||||||||||||||
|
| |||||||||||||||||
jaska Member
![]() |
You are right. It is a bug or at least a missing feature.
|
||||||||||||||||
|
Current time is 03:19 pm | |
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Runtime change language in high DPI Delphi program |
Sisulizer software localization tool - Three simple steps to localize