Application.MessageBox cancel button problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51972
    Support
    Keymaster

      Hello

      Style of this windows has not information about the Close button status.

      It's a reason why we don't know when button is disabled. I has no idea how to solve it at the moment, unfortunately.

      #51974
      CheshireCat
      Participant

        Hello Chris,

        there is a way to remove the button, maybe it will help you:

        Code:

        procedure TForm1.sButton1Click(Sender: TObject);
        var
        msgDialog: TForm;
        begin
        msgDialog := CreateMessageDialog('Replace this with the message to be displayed', mtInformation, [mbYes,mbNo]);
        try
        msgDialog.Caption := 'Title of the dialog';
        msgDialog.BorderIcons := []; // Message-Box have no title buttons
        msgDialog.ShowModal;
        finally
        msgDialog.Hide;
        msgDialog.Free;
        end;
        end;

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.