Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
10
Erster Beitrag:
vor 4 Jahren, 10 Monaten
Letzter Beitrag:
vor 4 Jahren, 8 Monaten
Beteiligte Autoren:
Ola, kimor, DerekT, J. Flietstra, Arie, Peter Holemans

[SOLVED] WD 18 Showing a message without interruption

Startbeitrag von kimor am 21.08.2013 05:22

Hi

This is probably a simple question...
I want to show a message while creating a pdf and sending a report, to show that something is happening...
If I use Open(SendMail) for instance the code gets interrupted.
What kind of window should I use and what command(s), options?
I want it to be modal as well...

Thx in advance...


Regards,
Kim

Antworten:

Re: WD 18 Showing a message without interruption

OpenChild() is your friend.

von Arie - am 21.08.2013 07:12

Re: WD 18 Showing a message without interruption

Hi

You can use the ToastMessage command

von J. Flietstra - am 21.08.2013 07:33

Re: WD 18 Showing a message without interruption

Hi Arie,
Now It keeps running the code but the animation is frozen in the "popup" window because WD is occupied sending the mail. How to "multithread" so that the animation keeps going?

Quote
Arie Mars
OpenChild() is your friend.



Regards,
Kim

von kimor - am 21.08.2013 07:37

Re: WD 18 Showing a message without interruption

Hi,

If you don't want 'ToastDisplay' you can try OpenSister() and set the WindowStatus() to AboveAll...

Cheers,

Peter H.

von Peter Holemans - am 21.08.2013 07:41

Re: WD 18 Showing a message without interruption

Well it seems that Multitask could be something...DUH...:cool:

Regards
Kim

Quote
kimor
Hi Arie,
Now It keeps running the code but the animation is frozen in the "popup" window because WD is occupied sending the mail. How to "multithread" so that the animation keeps going?

Quote
Arie Mars
OpenChild() is your friend.



Regards,
Kim


von kimor - am 21.08.2013 07:56

Re: WD 18 Showing a message without interruption

[Placed my message first in the wrong slot. See below.]

von Ola - am 17.10.2013 08:45
I noticed that I need this feature too.

ToastDisplay seems to work only with WB and WM, not with WD, or have I missed something? And it may close down before the process is done, right?

OpenChild can be called only from an already open window, right? So what if I need to open a parallel information window from the initialization stages of the program, before any window has been opened? Even hourglass is not displayed in this situation.

A typical situation is the rollback (cancellation) of an interrupted transaction during the initialization of the program. If the transaction is very large, the cancellation may take several minutes, and the cancellation process gives no indication that it is being run (at least in WD16); the user may get impatient and close the app from the task manager...

How can I keep the user informed?
Obviously Multitask or MultitaskRedraw "is my friend", but what is the correct syntax to open an information window which doesn't stop the execution of the process?

Best regards
Ola

von Ola - am 17.10.2013 08:48
Ola
I use OpenChild in the project initialisation without any problems.
A simple window with the company logo and a text field.

The text field is updated to advise the user what is happening for each process that is run - DB access, setting params etc.
Part of this initialization also checks and removes any interrupted transactions.
This is closed before the main window opens.

Works without any problems (WD17).

As said this is a simple window but I have, in other applications, used an animated image (from the WD image library) also without issue.

von DerekT - am 17.10.2013 10:24
Thanks DerekT

That's good hint. I'll try using OpenChild.

Best regards
Ola

von Ola - am 17.10.2013 11:00
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.