Confirm/Cancel buttons in promptcommand


#1

When I use Prompt command, I can close message with “Cancel” button or “Confirm” button or “X” button.

When I read explanations about prompt command, I understand that it is impossible to know which button is used to close message.

So an unique button like “Ok” one seems less ambiguous.


#2

Actually, you know which button is pressed. The input value is only returned with “Confirm”, otherwise the value is “null”

  • Cancel button => returned value = “null”
  • X icon => returned value = “null”
  • Confirm button => input value

#3

Super. I am going to use it!