Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 4 Jahren, 6 Monaten
Letzter Beitrag:
vor 4 Jahren, 6 Monaten
Beteiligte Autoren:
ccc2, Stefan Bentvelsen, Lewi, DerekT

[WM18] cancel closing window

Startbeitrag von ccc2 am 04.07.2013 11:41

Hi ,

how do I prevent a closing window in closing window event . I had try returntocapture() but no use.

any suggestion?

Antworten:

Use "ReturnTocapture" in the the Closing section of the window:

Closing XVZ..Window
_______________________
ReturnToCapture( )



Greetings

von Lewi - am 05.07.2013 11:16
Quote
Lewi
Use "ReturnTocapture" in the the Closing section of the window:

Closing XVZ..Window
_______________________
ReturnToCapture( )



Greetings


Hi Lewi . Thanks for reply

SWITCH Dialog("Close Application ?")
// Yes
CASE 1

// No
CASE 2
returntocapture(btnok)
END


I tried that but it doesn't work , I press the back button and the prompt show up , I press 'NO' , the window close .

is this method suppose to work in android ?

von ccc2 - am 05.07.2013 11:27
Pity you did not mention WDMobile in your first post.

This does not work for android or (probably, not tried) for iphone, windows.
You cannot interact with the 'Back' button.

You need to design the app so that the back button always takes the user to an appropriate active window.
If necessary you can then run a process to immediately redisplay the window - not great but does work although the effect is somewhat dependant on how much work the opening window has to do with regards to the information it displays.

von DerekT - am 05.07.2013 17:25
Hi Derek,

ccc2 did indeed mention [WM18] in the title of his post :rp:
It was clear to me that he uses Windev Mobile 18.

von Stefan Bentvelsen - am 08.07.2013 13:45
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.