![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#3
|
|||
|
|||
|
yo lo hice para abrir un archivo rtf y arrastrarlo a un richview.
En la seccion de "private" agrega este procedimiento. Código:
private
procedure WMDropFiles(var Msg: TWMDropFiles); message M_DROPFILES;
...
procedure TfMain.WMDropFiles(var Msg: TWMDropFiles);
var
CFileName: array[0..MAX_PATH] of Char;
RutaArchivoTemp : String;
begin
try
if DragQueryFile(Msg.Drop, 0, CFileName, MAX_PATH) > 0 then
begin
sbDocumento.Panels[0].Text := 'Archivo '+CFileName;
if extraerTextoWord(CFileName,RutaArchivoTemp) then begin // aca convierte de word a RTF.
reDocumento.lines.LoadFromFile(rutaArchivoTemp);
btnIniciarProceso.Enabled := True;
end;
Msg.Result := 0;
end;
finally
DragFinish(Msg.Drop);
end;
end;
__________________
"El ordenador nació para resolver problemas que antes no existían." Bill Gates. |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Arrastrar y soltar en un TreeView | Gabriel2 | OOP | 3 | 09-12-2005 13:57:03 |
| Arrastrar y soltar en un TreeView... | User_baja1 | Varios | 1 | 18-04-2005 13:39:50 |
| Arrastrar y soltar con DBGrids | NickName | Varios | 2 | 22-03-2005 02:20:03 |
| Arrastrar y Soltar!!! | chechu | Varios | 6 | 21-10-2004 20:26:35 |
| arrastrar y soltar imagen | haZe | Varios | 2 | 03-03-2004 17:06:10 |
|