Normal Topic Visability, ForceRedraw, and Loiter (Read 478 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Visability, ForceRedraw, and Loiter
Jan 28th, 2011 at 3:29pm
Print Post Print Post  
The example for Visability on page 431 of the programming manual includes the commands ForceRedraw() and Loiter(500).  Should these two always be used when using the Visability command?
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Visability, ForceRedraw, and Loiter
Reply #1 - Jan 28th, 2011 at 4:31pm
Print Post Print Post  
ForceRedraw may or may not be needed depending on when you change the Visibility. If you just use the Visibility call and it does what you want, then you don't need ForceRedraw. If your Visibility changes do not appear to take effect until you click on something or otherwise affect the GUI, then add a ForceRedraw to force a screen update.

I'm not sure why the Visibility example includes a call to Loiter. There is no need to pause for .5 seconds after changing visibility.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Visability, ForceRedraw, and Loiter
Reply #2 - Jan 28th, 2011 at 4:40pm
Print Post Print Post  
Thanks!
  

**
Captain Infinity
Back to top
IP Logged