strate Posted January 17, 2006 Share Posted January 17, 2006 I have a GUI that I want so that the user doesn't see all of the controls all of the time. Is it better to delete and redraw the controls each cycle? Or to draw the controls in the begining of the script and hide/unhide them. I want it to operate as fast as possible and to look seamless to the user. I might make 200 cycles of this in a 8 hour period. Just thought I'd ask some that are more experienced. So what would be the best option to use? (I'm leaning on hide/unhide) INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Sokko Posted January 17, 2006 Share Posted January 17, 2006 (edited) I personally like to create all the windows and controls I'll ever need at the start of the script, then just hide the ones I don't want to see in various situations. With the create/delete method, there is a chance that you might accidentally try to modify a control that doesn't exist anymore. Both methods will look about the same from the user's perspective (there may be a small speed difference in favor of the unhide method). Edited January 17, 2006 by Sokko Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now