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

Oct 14, 2009 at 7:15pm

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

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

#45870
Oct 15, 2009 at 4:12am

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.

#165323
Oct 15, 2009 at 8:22am

thanks!

#165324
Oct 15, 2009 at 4:33pm

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.

– Pasted Max Patch, click to expand. –
#165325
Oct 15, 2009 at 6:47pm

Thanks!
It is exactly what I want to do!

best,
prko

#165326

You must be logged in to reply to this topic.