how to prevent any mouse-clicking until a patch will be completely loaded (with a message)

prko's icon

Dear users,

When we run a program, we see the logo and we can not give any message until the program will be completely loaded.
I want program this in my patch.
What should I do?
How can I prevent any mouse-clicking until a patch will be completely loaded.
How can I display a waiting-message?

best,
prko

seejayjames's icon

Another angle is to initially load a [panel] that covers everything, colored white with some transparency, so your patch could show but not be clickable. While you want it un-clickable, have a [ubutton] over everything which doesn't do anything (it intercepts all clicks though). When the patch is done loading, hide the panel and ubutton and you're ready to go.

A popup window with "Loading..." or something is also really easy, look to [pcontrol] for window and popup controls. awesome object in so many other cases too... combined with windows being floating or not, you can do pretty much anything you want.

prko's icon

thanks!

Michel's icon

A solution I often use is to open, in front of the patcher, a window which invite to wait, I close it when all is OK. It's very useful when some people using my patch don't remember they have to wait.

Max Patch
Copy patch and select New From Clipboard in Max.

prko's icon

Thanks!
It is exactly what I want to do!

best,
prko