Skip to content

Commit

Permalink
Fix duplication of query tab controls, when it comes to aligning the …
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Dec 7, 2015
1 parent 636c220 commit 80990b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/main.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,7 @@ object MainForm: TMainForm
Width = 191
Height = 96
Align = alRight
Constraints.MinWidth = 10
DragMode = dmAutomatic
DragType = dtVCL
Header.AutoSizeIndex = 0
Expand Down
4 changes: 4 additions & 0 deletions source/main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9746,6 +9746,7 @@ procedure TMainForm.actNewQueryTabExecute(Sender: TObject);
QueryTab.Memo := TSynMemo.Create(QueryTab.pnlMemo);
QueryTab.Memo.Parent := QueryTab.pnlMemo;
QueryTab.Memo.Align := SynMemoQuery.Align;
QueryTab.Memo.Left := SynMemoQuery.Left;
QueryTab.Memo.Options := SynMemoQuery.Options;
QueryTab.Memo.PopupMenu := SynMemoQuery.PopupMenu;
QueryTab.Memo.TabWidth := SynMemoQuery.TabWidth;
Expand All @@ -9766,14 +9767,17 @@ procedure TMainForm.actNewQueryTabExecute(Sender: TObject);
QueryTab.spltHelpers := TSplitter.Create(QueryTab.pnlMemo);
QueryTab.spltHelpers.Parent := QueryTab.pnlMemo;
QueryTab.spltHelpers.Align := spltQueryHelpers.Align;
QueryTab.spltHelpers.Left := spltQueryHelpers.Left;
QueryTab.spltHelpers.Cursor := spltQueryHelpers.Cursor;
QueryTab.spltHelpers.ResizeStyle := spltQueryHelpers.ResizeStyle;
QueryTab.spltHelpers.Width := spltQueryHelpers.Width;

QueryTab.treeHelpers := TVirtualStringTree.Create(QueryTab.pnlMemo);
QueryTab.treeHelpers.Parent := QueryTab.pnlMemo;
QueryTab.treeHelpers.Align := treeQueryHelpers.Align;
QueryTab.treeHelpers.Left := treeQueryHelpers.Left;
QueryTab.treeHelpers.Width := treeQueryHelpers.Width;
QueryTab.treeHelpers.Constraints.MinWidth := treeQueryHelpers.Constraints.MinWidth;
QueryTab.treeHelpers.PopupMenu := treeQueryHelpers.PopupMenu;
QueryTab.treeHelpers.Images := treeQueryHelpers.Images;
QueryTab.treeHelpers.DragMode := treeQueryHelpers.DragMode;
Expand Down

0 comments on commit 80990b8

Please sign in to comment.