Application.Sleep

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Application.Sleep

Post by djrikki » Sun Mar 18, 2018 1:49 pm

Question for Thore really I suppose, I guess the answer might be 'it's historical'.

I've always wondered why the property Sleep of the Application class is stackable? How can this behaviour be useful?

In fact I created my own base function in Hollywood to prevent the stacking nature of this property.

Code: Select all

Function base:SafeSleep(window,state)
   If mui.Get(window, "sleep") = Not(state) Then mui.Set(window, "sleep", state)
EndFunction
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com

User avatar
airsoftsoftwair
Posts: 2659
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Application.Sleep

Post by airsoftsoftwair » Tue Mar 20, 2018 7:37 pm

Don't forget to ping Thore because I don't know if he's following these forums all the time...

Post Reply