Explorar el Código

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

Reinier Olislagers hace 11 años
padre
commit
fd2c1d3b3e
Se han modificado 2 ficheros con 1 adiciones y 1 borrados
  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