Ver Mensaje Individual
  #2  
Antiguo 31-10-2005
Avatar de Héctor Randolph
[Héctor Randolph] Héctor Randolph is offline
Miembro Premium
 
Registrado: dic 2004
Posts: 882
Reputación: 22
Héctor Randolph Va por buen camino
Efectivamente solamente tiene los eventos OnShow y OnClose; sin embargo también tiene propiedades y métodos.

Revisa la ayuda para obtener la lista completa.

Por ejemplo usa el método Execute y este te abrirá la caja de díalogo y te devolverá True si el usuario ha presionado [Aceptar] y False si ha presionado [Cancel].

Código Delphi [-]
  with  PrintDialog1 do
  begin
     if Execute then
     begin
       // Pon tu código de impresión aquí
     end;
  end;

Un saludo
Responder Con Cita