SQLDB: Enforce usage of default SynEdit font in GenerateSQLDlg form. Patch by Don Siders (see issue #39975).

This commit is contained in:
wp_xyz 2022-11-20 16:32:34 +01:00
parent f40f8d5c28
commit ecf49109b1
2 changed files with 25 additions and 15 deletions

View File

@ -264,13 +264,13 @@ object GenerateSQLForm: TGenerateSQLForm
Width = 788 Width = 788
Align = alClient Align = alClient
Font.Height = 13 Font.Height = 13
Font.Name = 'DejaVu Sans Mono' Font.Name = 'Courier New'
Font.Pitch = fpFixed Font.Pitch = fpFixed
Font.Quality = fqNonAntialiased Font.Quality = fqNonAntialiased
ParentColor = False ParentColor = False
ParentFont = False ParentFont = False
TabOrder = 0 TabOrder = 0
Gutter.Width = 55 Gutter.Width = 53
Gutter.MouseActions = <> Gutter.MouseActions = <>
RightGutter.Width = 0 RightGutter.Width = 0
RightGutter.MouseActions = <> RightGutter.MouseActions = <>
@ -727,7 +727,7 @@ object GenerateSQLForm: TGenerateSQLForm
MouseActions = <> MouseActions = <>
end end
object SynGutterLineNumber1: TSynGutterLineNumber object SynGutterLineNumber1: TSynGutterLineNumber
Width = 15 Width = 13
MouseActions = <> MouseActions = <>
MarkupInfo.Background = clBtnFace MarkupInfo.Background = clBtnFace
MarkupInfo.Foreground = clNone MarkupInfo.Foreground = clNone
@ -769,13 +769,13 @@ object GenerateSQLForm: TGenerateSQLForm
Width = 788 Width = 788
Align = alClient Align = alClient
Font.Height = 13 Font.Height = 13
Font.Name = 'DejaVu Sans Mono' Font.Name = 'Courier New'
Font.Pitch = fpFixed Font.Pitch = fpFixed
Font.Quality = fqNonAntialiased Font.Quality = fqNonAntialiased
ParentColor = False ParentColor = False
ParentFont = False ParentFont = False
TabOrder = 0 TabOrder = 0
Gutter.Width = 55 Gutter.Width = 53
Gutter.MouseActions = <> Gutter.MouseActions = <>
RightGutter.Width = 0 RightGutter.Width = 0
RightGutter.MouseActions = <> RightGutter.MouseActions = <>
@ -1232,7 +1232,7 @@ object GenerateSQLForm: TGenerateSQLForm
MouseActions = <> MouseActions = <>
end end
object SynGutterLineNumber1: TSynGutterLineNumber object SynGutterLineNumber1: TSynGutterLineNumber
Width = 15 Width = 13
MouseActions = <> MouseActions = <>
MarkupInfo.Background = clBtnFace MarkupInfo.Background = clBtnFace
MarkupInfo.Foreground = clNone MarkupInfo.Foreground = clNone
@ -1274,13 +1274,13 @@ object GenerateSQLForm: TGenerateSQLForm
Width = 788 Width = 788
Align = alClient Align = alClient
Font.Height = 13 Font.Height = 13
Font.Name = 'DejaVu Sans Mono' Font.Name = 'Courier New'
Font.Pitch = fpFixed Font.Pitch = fpFixed
Font.Quality = fqNonAntialiased Font.Quality = fqNonAntialiased
ParentColor = False ParentColor = False
ParentFont = False ParentFont = False
TabOrder = 0 TabOrder = 0
Gutter.Width = 55 Gutter.Width = 53
Gutter.MouseActions = <> Gutter.MouseActions = <>
RightGutter.Width = 0 RightGutter.Width = 0
RightGutter.MouseActions = <> RightGutter.MouseActions = <>
@ -1737,7 +1737,7 @@ object GenerateSQLForm: TGenerateSQLForm
MouseActions = <> MouseActions = <>
end end
object SynGutterLineNumber1: TSynGutterLineNumber object SynGutterLineNumber1: TSynGutterLineNumber
Width = 15 Width = 13
MouseActions = <> MouseActions = <>
MarkupInfo.Background = clBtnFace MarkupInfo.Background = clBtnFace
MarkupInfo.Foreground = clNone MarkupInfo.Foreground = clNone
@ -1779,13 +1779,13 @@ object GenerateSQLForm: TGenerateSQLForm
Width = 788 Width = 788
Align = alClient Align = alClient
Font.Height = 13 Font.Height = 13
Font.Name = 'DejaVu Sans Mono' Font.Name = 'Courier New'
Font.Pitch = fpFixed Font.Pitch = fpFixed
Font.Quality = fqNonAntialiased Font.Quality = fqNonAntialiased
ParentColor = False ParentColor = False
ParentFont = False ParentFont = False
TabOrder = 0 TabOrder = 0
Gutter.Width = 55 Gutter.Width = 53
Gutter.MouseActions = <> Gutter.MouseActions = <>
RightGutter.Width = 0 RightGutter.Width = 0
RightGutter.MouseActions = <> RightGutter.MouseActions = <>
@ -2242,7 +2242,7 @@ object GenerateSQLForm: TGenerateSQLForm
MouseActions = <> MouseActions = <>
end end
object SynGutterLineNumber1: TSynGutterLineNumber object SynGutterLineNumber1: TSynGutterLineNumber
Width = 15 Width = 13
MouseActions = <> MouseActions = <>
MarkupInfo.Background = clBtnFace MarkupInfo.Background = clBtnFace
MarkupInfo.Foreground = clNone MarkupInfo.Foreground = clNone
@ -2284,13 +2284,13 @@ object GenerateSQLForm: TGenerateSQLForm
Width = 788 Width = 788
Align = alClient Align = alClient
Font.Height = 13 Font.Height = 13
Font.Name = 'DejaVu Sans Mono' Font.Name = 'Courier New'
Font.Pitch = fpFixed Font.Pitch = fpFixed
Font.Quality = fqNonAntialiased Font.Quality = fqNonAntialiased
ParentColor = False ParentColor = False
ParentFont = False ParentFont = False
TabOrder = 0 TabOrder = 0
Gutter.Width = 55 Gutter.Width = 53
Gutter.MouseActions = <> Gutter.MouseActions = <>
RightGutter.Width = 0 RightGutter.Width = 0
RightGutter.MouseActions = <> RightGutter.MouseActions = <>
@ -2747,7 +2747,7 @@ object GenerateSQLForm: TGenerateSQLForm
MouseActions = <> MouseActions = <>
end end
object SynGutterLineNumber1: TSynGutterLineNumber object SynGutterLineNumber1: TSynGutterLineNumber
Width = 15 Width = 13
MouseActions = <> MouseActions = <>
MarkupInfo.Background = clBtnFace MarkupInfo.Background = clBtnFace
MarkupInfo.Foreground = clNone MarkupInfo.Foreground = clNone

View File

@ -532,6 +532,16 @@ procedure TGenerateSQLForm.FormCreate(Sender: TObject);
begin begin
Caption:= lrsGeneratesqlstatements; Caption:= lrsGeneratesqlstatements;
EdtQuoteChar.Text:='"'; EdtQuoteChar.Text:='"';
MSelect.Font.Height := SynDefaultFontHeight;
MSelect.Font.Name := SynDefaultFontName;
MInsert.Font.Height := SynDefaultFontHeight;
MInsert.Font.Name := SynDefaultFontName;
MUpdate.Font.Height := SynDefaultFontHeight;
MUpdate.Font.Name := SynDefaultFontName;
MDelete.Font.Height := SynDefaultFontHeight;
MDelete.Font.Name := SynDefaultFontName;
MRefresh.Font.Height := SynDefaultFontHeight;
MRefresh.Font.Name := SynDefaultFontName;
end; end;
procedure TGenerateSQLForm.BGenerateClick(Sender: TObject); procedure TGenerateSQLForm.BGenerateClick(Sender: TObject);