Ver Mensaje Individual
  #2  
Antiguo 19-10-2016
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
En el formulario modal intenta capturar el mensaje WM_SYSCOMMAND para desde ahí minimizar la aplicación:

Código Delphi [-]
interface

type
  TModalForm = class(TForm)
    { ... }
  private
    procedure WMSysCommand(var Message: TWMSysCommand); message WM_SYSCOMMAND;
  public
    { Public declarations }
  end;

implementation

procedure TModalForm.WMSysCommand(var Message: TWMSysCommand);
begin
  if Message.CmdType and $FFF0 = SC_MINIMIZE then
    Application.Minimize
  else
    inherited;
end;

LineComment Saludos

Última edición por roman fecha: 19-10-2016 a las 16:45:04.
Responder Con Cita