Delphi XE7 FMX 弹出消息

 

if MessageDlg('确认退出吗?', TMsgDlgType.mtConfirmation,  [TMsgDlgBtn.mbOK, TMsgDlgBtn.mbCancel], -1) = mrOK then       
MainActivity.finis
手机已经不支持这个了。改别办法去

 

MessageDlg('确认退出吗?', System.UITypes.TMsgDlgType.mtInformation,
    [
      System.UITypes.TMsgDlgBtn.mbOK,
      System.UITypes.TMsgDlgBtn.mbCancel
    ], 0,
    procedure(const AResult: TModalResult)
    begin
      if AResult = mrOk then
      begin
         Application.MainForm.DisposeOf;
          Halt(0);
      end
      else
      if AResult = mrCancel then

posted on 2015-03-12 16:28  那里的天空  阅读(1387)  评论(0编辑  收藏  举报

导航