Saturday, 15 June 2013

firemonkey - How to handle close event and makes the application runs in Delphi -



firemonkey - How to handle close event and makes the application runs in Delphi -

in closequeryevent, have added messagedlg code application close confirmation , when i'm running application in windows, application running if i'm passing canclose =true. messagedialogue not working in android , please suggest me there other way handle closequery event. , have seen illustration of how close android app in delphi-xe5 firemonkey application?

modal dialogs not work on mobile platforms. have utilize asynchronous versions take anonymous procedure input, , perform desired actions within procedure when dialog closed. example:

procedure tformmain.formclosequery(sender: tobject; var canclose: boolean); begin canclose := false; messagedlg('do want exit?', tmsgdlgtype.mtconfirmation, [tmsgdlgbtn.mbyes, tmsgdlgbtn.mbno], 0, procedure(const aresult: tmodalresult) begin if aresult = mryes application.terminate; end ); end;

delphi firemonkey delphi-xe7

No comments:

Post a Comment