Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 11 Monaten, 3 Wochen
Letzter Beitrag:
vor 11 Monaten, 3 Wochen
Beteiligte Autoren:
Massimo Caroccia.pcs.crosspost, Arie Mars, PETER ZHOU

How to close current active window before calling another new window

Startbeitrag von PETER ZHOUam 30.05.2012 04:03

Hi,

In WINDEV, i want to do the following:-
WINDOW with clickable image, click on the image will need to close current window and then open another new window.
What's the code to do it as i understand that the "close" will terminate the current progress.

Regards,

Peter Zhou
Antworten:
Peter,
I think you need an exra "caller" which calls your first window with the image.
When clicking the image you can close this window and return a value, say true. When hitting the red cross or some cancel button, return false.
Then the caller can start your second window, based on the return value you get from the first.

von Arie Mars - am 30.05.2012 06:51
You can do:

USE WIN_Second

see http://doc.pcsoft.fr/en-US/?3038044

or in "Close event" of Window1 you open the second window (WIN_Second)


Message forwarded from pcsoft.us.windev

von Massimo Caroccia.pcs.crosspost - am 30.05.2012 07:41
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.