In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Stopping a progress Bar

Xailer professional forum in English
Responder
Pedro Sousa e Faro
Mensajes: 91
Registrado: Mié May 30, 2007 5:25 pm

Stopping a progress Bar

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Stopping a progress Bar

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Pedro Sousa e Faro
Mensajes: 91
Registrado: Mié May 30, 2007 5:25 pm

Stopping a progress Bar

Mensaje 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
Responder