Browse Source

Querywindow: when creating new results tab, set focus to it

Reinier Olislagers 11 years ago
parent
commit
fd2c1d3b3e
2 changed files with 1 additions and 1 deletions
  1. 0 1
      comparison.pas
  2. 1 0
      querywindow.pas

+ 0 - 1
comparison.pas

@@ -519,7 +519,6 @@ begin
             Line:= 'alter table ' + ATableName + LineEnding +
             'add constraint ' + AIndexName + LineEnding +
             'primary key (' + FieldsList.CommaText + ');';
-
           end
           else
           begin

+ 1 - 0
querywindow.pas

@@ -1006,6 +1006,7 @@ begin
   BeginUpdateBounds;
   Result:= ATab;
   ATab.Parent:= pgOutputPageCtl;
+  pgOutputPageCtl.ActivePage:= ATab; //set focus to new tab
   ATab.Caption:= 'Result # ' + GetNewTabNum + ' ' + AdditionalTitle;
   if QueryType = qtSelectable then // Select, need record set result
   begin