Skip navigation.
 
mlRe[4]: Action-cancelling dialog box
FROM : ?????? ??????
DATE : Fri Dec 24 14:49:16 2004

> > - the button on the dialog box doesn't work until the backgound
> > process is completed. It's bad! What I need is to be able to press the
> > button while the process is going and cancel it.
>
> Sounds like your "background" task runs in the main thread. This
> prevents events like keyboard input, mouse clicks, GUI updates etc. to
> be processed until your task is finished.
>
> The usual way would be to run all GUI stuff, i.e. your dialog, in the
> main thread and any lengthy calculations in another thread. "lengthy"
> might be something around 3 seconds processing time on a 366 MHz box.


but GUI updates work just okay!!!! The button blinks and a progress bar on the window flows... It just doesn't accept mouse clicks as you mentioned.

Related mailsAuthorDate
mlAction-cancelling dialog box ?????? ?????? Dec 23, 17:00
mlRe: Action-cancelling dialog box David Dunham Dec 23, 18:07
mlRe: Action-cancelling dialog box Ken Anderson Dec 23, 18:52
mlRe: Action-cancelling dialog box Phil Dec 24, 06:53
mlRe[2]: Action-cancelling dialog box ?????? ?????? Dec 24, 13:27
mlRe: Re[2]: Action-cancelling dialog box Markus Hitter Dec 24, 14:15
mlRe[4]: Action-cancelling dialog box ?????? ?????? Dec 24, 14:49