Ver Mensaje Individual
  #2  
Antiguo 12-02-2011
Neeruu Neeruu is offline
Miembro
 
Registrado: oct 2007
Posts: 485
Reputación: 17
Neeruu Va por buen camino
Cool cannot focus a disabled or invisible window en Delphi 7 y Delphi 2010

Hola a todos...

Sin poder determinar porque en delphi 7 se comporta de una forma y delphi 2010 de otra, he modificado la función dejándola así:

Código Delphi [-]
Function TFrmLocalidades.ShowPopup(MyStatePopup:TStatePopup):Variant;
begin
  Case MyStatePopup of
    spNewRecord:begin
                  try
                     ModuloDatos.Localidad.DisableControl;    
                     ModuloDatos.Localidad.Append;
                  finally
                     ModuloDatos.Localidad.EnabledControl;
                  end;
                end;
    spEditRecord: begin
                             ....
                  end;
  end;

  if FrmLocalidades.ShowModal = mrOk then
    begin
      ....
    end
  else
    begin
      ....
    end;
end;

Saluda Atte Neeruu!!!
__________________
Saluda Atte Neeruu!!! :)
Responder Con Cita