Hello,
In some long running processes how can I lock the main window so no controls can be clicked on until my process is done?
I could individually disable all the controls but some controls I am using do not have a Enabled property. In Visual Basic I'd simply lock the window then unlock it until the freeze was over. I may have needed an API function to do this back in VB.
Does a Progress Bar control stop users from clicking on all other controls on a window?
What method do you use when doing these type operations where you want to stop anyone from being able to click on a control?
Thanks,
Michael
Lock App Window
Moderator: Rathinagiri
-
- Posts: 119
- Joined: Wed Feb 18, 2009 2:14 pm
- srvet_claudio
- Posts: 2124
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Has thanked: 55 times
- Been thanked: 247 times
- Contact:
-
- Posts: 666
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
- Has thanked: 1 time
- Been thanked: 62 times
Hi Melliot:
I use another option: i create a Window MODAL where i put - as your example - a progress bar control.-
Modal window must be defined with this properties:
NOSIZE ;
NOSYSMENU ;
NOCAPTION ;
This way you en user only see progress bar and wait till it ends meanwhile he can't do anythings.-
When progressbar or any process end, the window MODAL must be closed and end user returns to controll the app.-
Hopping this helps you.
With regards.
Eduardo
I use another option: i create a Window MODAL where i put - as your example - a progress bar control.-
Modal window must be defined with this properties:
NOSIZE ;
NOSYSMENU ;
NOCAPTION ;
This way you en user only see progress bar and wait till it ends meanwhile he can't do anythings.-
When progressbar or any process end, the window MODAL must be closed and end user returns to controll the app.-
Hopping this helps you.
With regards.
Eduardo
-
- Posts: 119
- Joined: Wed Feb 18, 2009 2:14 pm
The Modal Window as you guys described is the best method I think.
I implemented the WAIT WINDOW because it was the quickest route but will change it accordingly. The modal window, as you guys described, will look more professional.
The WAIT WINDOW is pretty cool. Just wish it had more options.
Thanks!
I implemented the WAIT WINDOW because it was the quickest route but will change it accordingly. The modal window, as you guys described, will look more professional.
The WAIT WINDOW is pretty cool. Just wish it had more options.
Thanks!