Jump to content

Redraw controls?


strate
 Share

Recommended Posts

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

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 by Sokko
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...