Delphi 7 - ShowMessage to Stay on Top and not to be Able to Click Other Windows of applications unless you Press ''ok'' button in the message -


how can that?

procedure tfmain.button2click(sender: tobject); begin showmessage('cya!!'); application.terminate; end; 

is there way able click ''ok'' showmessage , if dont wont able click else in interface?

i think you're looking mb_systemmodal flag on messagebox. instead of showmessage, call messageboxdirectly, this:

messagebox(application.handle,'cya!!',pchar(application.title),mb_ok or mb_iconinformation or mb_systemmodal); 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -