This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

LMDFileOpenDialog/LMDFileSaveDialog behaves not as a modal dialog

edited May 2013 in LMD ElPack
Above dialogs behaves not as a modal dialog when the form from which the dialogs are executed are not the mainform.

I've make the following fix in LMDVistaDialogs:

Change line

      LParentWnd := Application.Handle;

to

    if Assigned(Screen.ActiveForm) and (Screen.ActiveForm <> Application.MainForm) then
      LParentWnd := Screen.ActiveForm.Handle
    else
      LParentWnd := Application.Handle;

Please check if you can avoid dialog flickering when click on the owner-form in case that a not-Mainform is the parent.



I'm using Delphi 6. So perhaps this behaviour isn't there in new Delphi-Versions.

Comments

  • Hi,

    change will be added to next service release. However when you checked code you will see that this problem is handled by higher Delphi versions automatically. For older versions there is/was always possibility to use the ExecuteEnh method.


Sign In or Register to comment.