PAD uses the Robin RPA language and the code behind for calling a Display Message is as follows.
Display.ShowMessageDialog.ShowMessage Title: $'''Title''' Message: $'''test msg''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed

But you won't be able to directly see what's written in this function -> Display.ShowMessageDialog.ShowMessage.
Quite some time ago I had seen a LinkedIn post where even this function code was visible using some external tool.