Ask the user to enter Text

[quote=115351:@Paul Sondervan]There was another thread about popovers in the past.
Maybe this one has a solution you can use.
Popovers[/quote]

It’s there I found out about Bill solution. After having created my own posted there for Windows, much cruder :wink:

This is a ‘Fake PopUp’ that I made for OSX

FakePopup

Thank you Axel, all, for your answers.

I totally forgot that Conversation and re-discover it minutes ago (thanks to Axel).

I will re-read it in the afternoon at nap time.

… a year later

FakeTitleBar

Nice !

I will get an eye on it.

Not native yet (I may be waiting it to be native years ago…).

I do not know if I like to use PopOver(s), but if native, I would have used widely… since most of the time we only need a simple and convenient way to get data from the user.

In AppleScript there is DisplayDialog (like MsgBox), but parameters are here to modify it to be “InputDialog” (nothing similar in Xojo), easilly, so easilly !

Somehow we tend to forget AppleScript is extremely simple to use in Xojo :

Save this script as inputDialoG.scpt and drag into the project :

on run {question} set reponse to the text returned of (display dialog question default answer "") return reponse as text end run

Call as :

Dim Response as String = inputDialog("Enter some text")

This code is cool in the MAS as it does not tap into system events.

Of course AppleScript is not cross platform, so designing a small window with a label TextField and a button should not be out of reach of even a Xojo beginner :wink: