Fred wrote:
About the cancel detection, if there is an empty string, it probably means it was closed with ESC.
This has been discussed before. It doesn't mean that necessarily. It could be a prompt with some pre-filled text and the user wants to clear that text (say for a filter). An empty string is just too confusing, and it's why I use my own InputRequester instead.
Is there a major reason it can't return Chr(27) when Esc is pressed or Cancel is clicked? It's then obvious to the coder what happened, and they can act accordingly. Nobody can type Chr(27) by mistake in normal use.
Also, and I've said this before, it needs to bigger and wider for today's HD monitors, because it's really too small to allow meaningful input.