To be precise, adding a transparent Panel is NOT a modal input!
You need to process the user input yourself after the end of the routine where you call the Panel.
In a real modal input, like the Dialogs library, the process is interupted waiting for the user input in the calling routine.
I think I did what you suggest; I am attaching the app if you can help someone.
this feature will be added to my form generator, freely downloadable from the website: www.condorinformatique.com.
Marco app is only a container for try a Dialog function, I agree that is not the best to stp the main thread but it is the behavior that I wanted, that is a function returning a value.
I added Dialog to my form (de)generator.
A CustomView is a good idea.
(Marco1 doesn't works becaus I aheve not yet update B4.)