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