Optimization: set up a single TSynMemo instance instead of all, e.g. when creating a new query tab

This commit is contained in:
Ansgar Becker
2022-05-25 13:16:27 +02:00
parent fc5848b889
commit 25d15d8b41
8 changed files with 118 additions and 85 deletions

View File

@ -273,7 +273,7 @@ begin
pnlLeft.Width := AppSettings.ReadIntDpiAware(asSQLHelpPnlLeftWidth, Self);
memoDescription.Height := AppSettings.ReadIntDpiAware(asSQLHelpPnlRightTopHeight, Self);
// Apply themed colors in OnShow, not OnCreate, as a check with <> nil returns false otherwise
MainForm.SetupSynEditors;
MainForm.SetupSynEditors(Self);
// These SynMemo's don't have any (SQL) highligher, so we have to assign correct colors for basic text
memoDescription.Font.Color := GetThemeColor(clWindowText);
MemoExample.Font.Color := GetThemeColor(clWindowText);