Mejorado el copy-paste en el grid. Ahora es más rápido y sale el cursor de reloj de arena cuando se está realizando el proceso.
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@945 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
126cccf82f
commit
5918d9fa8d
@ -599,6 +599,8 @@ begin
|
|||||||
if not Assigned(AGrid) then
|
if not Assigned(AGrid) then
|
||||||
raise Exception.Create('Grid no asignado (CopiarSeleccionGridAlPortapapelesTXT)');
|
raise Exception.Create('Grid no asignado (CopiarSeleccionGridAlPortapapelesTXT)');
|
||||||
|
|
||||||
|
ShowHourglassCursor;
|
||||||
|
try
|
||||||
RegistrarFormatos;
|
RegistrarFormatos;
|
||||||
|
|
||||||
AGridStatus := TcxGridStatus.Create(TcxGridDBTableView(AGrid.ActiveView));
|
AGridStatus := TcxGridStatus.Create(TcxGridDBTableView(AGrid.ActiveView));
|
||||||
@ -620,6 +622,9 @@ begin
|
|||||||
AGridStatus.Restore(TcxGridDBTableView(AGrid.ActiveView));
|
AGridStatus.Restore(TcxGridDBTableView(AGrid.ActiveView));
|
||||||
FreeAndNil(AGridStatus);
|
FreeAndNil(AGridStatus);
|
||||||
end;
|
end;
|
||||||
|
finally
|
||||||
|
HideHourglassCursor;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -771,6 +776,8 @@ begin
|
|||||||
2. CF_TEXT -> tratar y pegar texto plano
|
2. CF_TEXT -> tratar y pegar texto plano
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShowHourglassCursor;
|
||||||
|
try
|
||||||
RegistrarFormatos;
|
RegistrarFormatos;
|
||||||
|
|
||||||
if Clipboard.HasFormat(CF_FACTUGES) then
|
if Clipboard.HasFormat(CF_FACTUGES) then
|
||||||
@ -784,6 +791,9 @@ begin
|
|||||||
PegarTextoDesdePortapapeles(AGrid);
|
PegarTextoDesdePortapapeles(AGrid);
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
finally
|
||||||
|
HideHourglassCursor;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user