How can I prevent that the TwwDBRichEdit Control changes its Font.Size when scaling the Form?
This happens by the Delphi internal routine TForm.ScaleBy(), and also happens when user encrease the DPI Setting in Windows OS.
Big Problem is that I use the RichEdits for Printing. So when a user upscale the Form and then input text in a empty Richedit, the RichEdit uses the encreased FontSize as Default which will no more fit on Paper by Printing.
For a simple Test
- put a TwwDBRichEdit on a Form
- call ScaleBy(140,100)
- call wwDBRichEdit1.Print
So is there a setting that the Font.size of the RichEdit Control will not increase when a user upscale the form?
Thank you
But nevermind which method the user takes, the font size of the TwwDBRichEdits will encrease as soon you upscale Forms. By DatabaseFields which allready have a content it's no problem because the font size is allready stored in the rtf text. But for blanc blob fields without content the default font size by the next input is encreased because the TwwDBRichEdit control do this by upscaling.
I think this must be a very well known problem because there is shurely a lot of other software around which also use their RTF stored in text blob fields for printing. So my question is: How to fix the font of my around 600 TwwDBRichEdit Controls in the application not to change their font.size property when a user upscale the GUI?
Of cource I understand that the sense of encreasing DPI or upscale forms is to make controls bigger to read it better on Monitor. And yes this is the primary purpose of doing this. But as said it makes some troubles for the RTF Controls as soon you want to PRINT the RTF blob content of such automatic upscaled RichEdits. So my thougt was that many users before trapped into that and so maybe there is a control setting to fix the font.size also by windows scaling?.
I checked the ParentFont property. Sadly it do not change anything whether you set it to true or false.