DelphiAaron
Programmer
is it possible to show a modal form but still allow the locked form underneath to process messages ?.
Aaron
Aaron
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
procedure frmMain.ShowDialog;
var DlgClosed; // global var to detect dialog closure
begin
...
DlgClosed := False;
Enabled := False; // disable form to prevent mouse clicks
frmDialog.show; //(and not showmodal)
repeat
Application.ProcessMessages;
Sleep(20); // prevent 100% cpu
until DlgClosed; // flag must be set by frmDialog (ie OnClose event)
Enabled := True;
...
end;