PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Interdire la fermeture par la touche Back dans une fenêtre avec des plans
Interdire la fermeture par la touche Back dans une fenêtre avec des plans
Started by MANUEL ( UFOLEP ), Apr., 28 2017 7:46 PM - 4 replies
Connect yourself…
MANUEL ( UFOLEP )
#1
Registered member
48 messages
Popularité : +3 (3 votes)
Posted on April, 28 2017 - 7:46 PM
Bonjour,
J'ai une fenêtre avec 5 plans et je voudrais interdire de fermer la fenêtre par un appui sur la touche back.
J'ai programmé la flèche retour de l'action-bar pour me faire revenir du plan 5 au plan 4 et ainsi de suite.
Si je mets un bouton caché de type abandon, ça empêche la fermeture sur le plan 1 mais pas sur les autres plans. Si je mets plusieurs boutons (un sur chaque plan) ça marche pour le plan 1 mais pas pour les autres. En effet, on ne peut pas avoir plusieurs boutons avec la même action dans la même fenêtre.
Est-ce que l'un(e) d'entres-vous aurait réussi à trouver une solution ?
Merci d'avance
Report
0
0
Eric67
#2
Registered member
637 messages
Popularité : +36 (36 votes)
Posted on April, 28 2017 - 8:03 PM
Bonjour,
Il suffit de mettre le code ad hoc dans le bouton abandon...
ex : SI MaFenêtre..Plan = 2 _OU_ MaFenêtre..Plan = 3 ... jusqu'à 4 ALORS RETOUR
Cdlt - Eric.
--
Eric DELATTRE
http://www.yoosite.fr
Report
0
0
MANUEL ( UFOLEP )
#3
Registered member
48 messages
Popularité : +3 (3 votes)
Posted on April, 29 2017 - 10:50 AM
Merci pour ta réponse qui m'a bien aidé, pour que ça marche, il faut dupliquer le bouton sur chaque plan
SI
FEN_
calendrier
..
Plan
=
2
OU
FEN_
calendrier
..
Plan
=
3
OU
FEN_
calendrier
..
Plan
=
4
OU
FEN_
calendrier
..
Plan
=
5
ALORS
SI
OuiNon
(
"Voulez-vous fermer ?"
)
=
Oui
ALORS
Ferme
(
MaFenêtre
)
FIN
FIN
Report
0
0
Eric67
#4
Registered member
637 messages
Popularité : +36 (36 votes)
Posted on April, 29 2017 - 11:28 AM
Bonjour,
Non ce n'est pas vraiment utile. Tu peux n'avoir qu'un seul bouton - hors écran - lequel est pas défini pour tous les plans (aucun plan ou 0).
Cela facilite la gestion et la maintenance.
Bon dev,
Eric.
--
Eric DELATTRE
http://www.yoosite.fr
Report
0
0
Gaël
#5
Registered member
151 messages
Popularité : +7 (7 votes)
Posted on August, 08 2017 - 10:24 AM
Sans avoir à dupliquer le bouton sur chaque plan, il suffit de mettre ce code dans la fermeture de la fenêtre.
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text