level 1
这是该函数:
procedure Tfolderdeepform.DBGridEh3DblClick(Sender: TObject);
begin
if (ADOQuery3.Active=True) and (ADOQuery3.RecordCount>0) then begin
MainForm.Visible := false;
MainForm.mnuFolderClick(nil);
MainForm.mnuFolder.Checked := true; //trick the toggle
with TFilesFrame(MainForm.FilesFrame) do begin if (pnlCaptionLeft.Color = ISMODIFIED_COLOR) then
begin
case application.MessageBox(pchar('Save changes to'#10 +
pnlCaptionLeft.Caption+' ? '),pchar(application.title),
MB_YESNOCANCEL or MB_ICONSTOP or MB_DEFBUTTON3) of
IDCANCEL: exit;
IDYES: SaveFileClick(MainForm.mnuSave1);
end;
end;
if (pnlCaptionRight.Color = ISMODIFIED_COLOR) then
begin
case application.MessageBox(pchar('Save changes to'#10 +
pnlCaptionRight.Caption+' ? '),pchar(application.title),
MB_YESNOCANCEL or MB_ICONSTOP or MB_DEFBUTTON3) of
IDCANCEL: exit;
IDYES: SaveFileClick(MainForm.mnuSave2);
end;
end;
DoOpenFile(ADOQuery3.FieldByName('sFilepath').AsString, true);
DoOpenFile(ADOQuery3.FieldByName('dFilepath').AsString, false);
Mainform.Show ;
end;
end;
end;
2012年05月10日 04点05分