Página 1 de 1

Stopping a progress Bar

Publicado: Vie Sep 24, 2010 6:04 pm
por Pedro Sousa e Faro
Hi
How can i stop a progress Bar that is running into a cycle, by pressing on
it , or a Buttom in the "form".
It Seems the only way to evaluate the progress Bar is with "ON change",
The other events "Click " , DBL Click" doesn't work while the progress
don't End.
for nl:=1 to aData:reccount()
::oProgressBar1:nValue++ //need a way to stop this
Next
Regards
Pedro Faro

Stopping a progress Bar

Publicado: Sab Sep 25, 2010 10:52 pm
por jfgimenez
Pedro,
> How can i stop a progress Bar that is running into a cycle, by pressing
> on it , or a Buttom in the "form".
>
> It Seems the only way to evaluate the progress Bar is with "ON change",
>
> The other events "Click " , DBL Click" doesn't work while the progress
> don't End.
>
>
> for nl:=1 to aData:reccount()
> ::oProgressBar1:nValue++ //need a way to stop this
> Next
You need to call ProcessMessages() inside the loop in order to allow
procesing any windows message, like a click on a button or any other user
action.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Stopping a progress Bar

Publicado: Lun Sep 27, 2010 10:10 am
por Pedro Sousa e Faro
Hi Jose,
Thank's . Works fine.
Regards
Pedro
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:[email=4c9e60a8@svctag-j7w3v3j....]4c9e60a8@svctag-j7w3v3j....[/email]
> Pedro,
>
>> How can i stop a progress Bar that is running into a cycle, by pressing
>> on it , or a Buttom in the "form".
>>
>> It Seems the only way to evaluate the progress Bar is with "ON change",
>>
>> The other events "Click " , DBL Click" doesn't work while the progress
>> don't End.
>>
>>
>> for nl:=1 to aData:reccount()
>> ::oProgressBar1:nValue++ //need a way to stop this
>> Next
>
> You need to call ProcessMessages() inside the loop in order to allow
> procesing any windows message, like a click on a button or any other user
> action.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info