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.

Problem with TProgressDlg

Xailer professional forum in English
Responder
Guest

Problem with TProgressDlg

Mensaje por Guest »

Hi,
the progress dialog will not be shown immediately after the dialog is
activated with Run().
I modified the dialogs example to show the problem:
METHOD Button15Click( oSender ) CLASS TForm1
WITH OBJECT ::oProgressDlg1
:nValue := 0
:Run()
Sleep( 3000 ) // added
WHILE .T.
:nValue++
Sleep( 30 )
IF :IsCancel()
:Stop()
EXIT
ENDIF
IF :nValue == :nMax
:Stop()
EXIT
ENDIF
END
END
RETURN Nil
I tried to solve it with Reset() but it didn´t work.
Best reagrds, Timm.
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Problem with TProgressDlg

Mensaje por jlalin »

Timm,
> the progress dialog will not be shown immediately after the dialog is
> activated with Run().
Yes, you are right. However they say it is not a bug but a "feature".
See this:
"There is a default two second delay before the dialog appears. This is
the default behavior."
Regards,
José Lalí­n
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Problem with TProgressDlg

Mensaje por jlalin »

Timm,
> the progress dialog will not be shown immediately after the dialog is
> activated with Run().
Yes, you are right. However they say it is not a bug but a "feature".
See this:
"There is a default two second delay before the dialog appears. This is
the default behavior."
Regards,
José Lalí­n
Guest

Problem with TProgressDlg

Mensaje por Guest »

Hi José,
is it possible to change the delay value?
Best regards, Timm.
"José Lalín" <dezac@corevia.com> schrieb im Newsbeitrag
news:44a83d42$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Timm,
>
>> the progress dialog will not be shown immediately after the dialog is
>> activated with Run().
>
> Yes, you are right. However they say it is not a bug but a "feature". See
> this:
>
> "There is a default two second delay before the dialog appears. This is
> the default behavior."
>
> Regards,
> José Lalín
Guest

Problem with TProgressDlg

Mensaje por Guest »

Hi José,
is it possible to change the delay value?
Best regards, Timm.
"José Lalín" <dezac@corevia.com> schrieb im Newsbeitrag
news:44a83d42$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Timm,
>
>> the progress dialog will not be shown immediately after the dialog is
>> activated with Run().
>
> Yes, you are right. However they say it is not a bug but a "feature". See
> this:
>
> "There is a default two second delay before the dialog appears. This is
> the default behavior."
>
> Regards,
> José Lalín
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Problem with TProgressDlg

Mensaje por jlalin »

Hi Timm,
> is it possible to change the delay value?
seems it is not.
Regards,
José Lalí­n
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Problem with TProgressDlg

Mensaje por jlalin »

Hi Timm,
> is it possible to change the delay value?
seems it is not.
Regards,
José Lalí­n
Responder