EditParent.OpenDlg.InitialDir := EditParent.FDefaultDir; EditParent.OpenDlg.FileName := EditParent.FFileName; EditParent.OpenDlg.Execute
<pre> EditParent.OpenDlg.InitialDir := EditParent.FDefaultDir; EditParent.OpenDlg.FileName := EditParent.FFileName; EditParent.OpenDlg.Execute
if UpperCase(SmSession.ApplicationName) = 'MYAPP' then begin Params.ExStyle := Params.ExStyle or WS_EX_TOPMOST; exit; end , so the windows dialog box might be at the back. How can I take it to front without changing my application forms code ?
EditParent.OpenDlg.InitialDir := EditParent.FDefaultDir; EditParent.OpenDlg.FileName := EditParent.FFileName; if EditParent.OpenDlg.Execute then Begin SplitFileDir(EditParent.OpenDlg.FileName, TmpDir, TmpFile); if EditParent.ShowOnlyFileName then EditParent.FileName := TmpFile else EditParent.FileName := EditParent.OpenDlg.FileName; EditParent.Directory := TmpDir; EditParent.SetPeerDirectoryBrowser; End; EditParent.OpenDlg.Free; inherited Click; end;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)