Message
 
To
14/12/2006 09:31:04
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Germany
General information
Fórum:
Visual FoxPro
Category:
Formulários & Criador de Formulários
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Miscellaneous
ID da thread:
01177577
ID da mensagem:
01177596
Views:
8
Hi Marcus,
SNIP

>Hello,
>
>I have 2 Problems with VFP6
>
>1.
>Problem with forms:
>Inside a procedure ( of a form) I want to call a form which has a Cancel-Button.
>I want to give the user the opportunity to cancel the running program.
>I want this form to be visible for 5 seconds.
>If the user doesn't press the Cancel button (within 5 seconds) the procedure should be continued.
>but if I call my "Wait Form" with "do form wait" the procedure doesn't interrupt. It goes on processing.
>How can I force the procedure to stop and to read the cancel-Button?

Add timer on second form, set Enabled=.F., Interval=5000.
Add this row "Thisform.Release()" to event Timer() of timer.
Add next two rows into event Init() of form (second)
this.timer.Enabled=.T.
this.timer.Reset()


>
>2.
>Would be nice if the user could stop the procedure with the ESC-Button.
>I tried "on key label ESC " but it does not work.
>What can I do to interrupt the procedure with "ESC"?
>PS: One problem: The VFP-Program does not have the focus all the time.
>The procedure (described above) is switching to a SAP-mask to send keystrokes to it.

And ON ESCAPE is ON or OFF?


>
>
>Thanks in advance for your help
>
>
>Marcus


MartiJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Responder
Mapa
View