Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lock Window

Status
Not open for further replies.

fermi

Technical User
Joined
Nov 21, 2002
Messages
3
Location
US
I've been trying to do this for a while now with message handling and so forth, but I can't seem to get it right.

I have a GUI application and I need a button that allows the user to lock all of the GUI's components and unlock when it is ready to do more stuff.

Any suggestions?
 
Becuause I dont know how you are doing this, I cant give a definite answer but if you are single threaded, why not have a

1. Global function that will set a value to true or false for locking

2. Write a class to lock / unlock data

3. Add a funciton to all the classes which the data needs to be locked and call them to lock the data

4. Write a singleton class if you do indeed lock/unlock ALL the data at once and not just portions of the data.

Just a few ideas
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top