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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-06-29
  • 2021-07-06
  • 2022-01-03
猜你喜欢
  • 2021-12-24
  • 2022-02-24
  • 2022-12-23
  • 2021-07-28
  • 2021-12-26
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案