FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Android Back Button
Android Back Button
Débuté par Dave Summers, 07 mar. 2018 23:27 - 3 réponses
Connectez-vous…
Dave Summers
#1
Posté le 07 mars 2018 - 23:27
Hi
Does anyone know how the syntax to either disable or trap the press of the android back button ?
or
is it my design, i have a multi-pane screen, i can navigate back a pane with the action bar button but the android back button takes me back to the previous window
Has anyone else had these design issues and what is the best solution ?
thanks
Dave
Signaler
0
0
Fabrice Harari
#2
Posté le 08 mars 2018 - 10:43
Hi Dave,
just put a button (it can be hidden on the left or visible) on your
window where you want to trap the back key, and set it's shortcut to be
the back key... in the button, code the action you want executed when
the user presses back. That's all.
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)
More information on
http://www.fabriceharari.com
Le 3/7/2018 à 5:27 PM, Dave Summers a écrit :
Hi
Does anyone know how the syntax to either disable or trap the press of
the android back button ?
or
is it my design, i have a multi-pane screen, i can navigate back a pane
with the action bar button but the android back button takes me back to
the previous window
Has anyone else had these design issues and what is the best solution ?
thanks
Dave
Signaler
0
0
Eric67
#3
Membre enregistré
637 messages
Popularité : +36 (36 votes)
Posté le 08 mars 2018 - 11:21
Hi dave,
You just need to create a back button with "abandon" status. Sorry I don't know how to say in English but have a look at the picture.
Then the code below should solve your issue. Just adapt the windows name and manage regarding the number of panels you have.
The button has to be out of the screen but visible status and active.
Regards,
Eric.
SI
FEN_
TraitementIntervention
..
Plan
=
2
ALORS
FEN_
TraitementIntervention
..
Plan
=
1
RETOUR
FIN
SI
FEN_
TraitementIntervention
..
Plan
=
3
ALORS
FEN_
TraitementIntervention
..
Plan
=
1
RETOUR
FIN
Message modifié, 08 mars 2018 - 11:24
Signaler
0
0
Pedro Reyes
#4
Posté le 13 novembre 2023 - 17:41
Muy importante: si la pantalla contienes planos, el botón ha de estar situado en el plano 0, en caso contrario no funcionará.
Very important: if the screen contains planes, the button must be located on plane 0, otherwise it will not work.
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte