FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
scheduler direct entree
scheduler direct entree
Débuté par Marc Muylaert, 16 aoû. 2019 09:58 - 4 réponses
Connectez-vous…
Marc Muylaert
#1
Posté le 16 août 2019 - 09:58
In a direct entree in a scheduler (not aaf) a numeric character does not trigger the 'before creating the appointment'?
Typing for example 'a' enables it, but not '1'.
why is that - where can I change this behaviour? It is the same in de pcsoft examples..
Signaler
0
0
Marc MUYLAERT
#2
Membre enregistré
9 messages
Popularité : +1 (1 vote)
Posté le 17 août 2019 - 10:13
I mean direct entry ... spend to much time writing and speaking french lately
Signaler
0
0
BALTASAR
#3
Membre enregistré
52 messages
Popularité : +3 (3 votes)
Posté le 19 août 2019 - 11:13
Maybe a solution (not perfect, but it works!):
---declare a global boolean variable gbSendingKeys:
PROCEDURE MyWindow
gbSendingKeys is boolean = False
---then at key pressed event of scheduler:
key pressed (WM_CHAR) of SCH_Noname1
IF NOT gbSendingKeys THEN
IF _EVE.wParam >=48 _AND_ _EVE.wParam <=57 THEN
gbSendingKeys=True
sKey is string = Charact(Val(_EVE.wParam))
MyKeys is string = "A" + Charact(
+ sKey
SendKey(MyKeys)
gbSendingKeys=False
END
END
--- all I do is intercept keypress of numeric key, send an alphanumeric ("A"), delete it, and then the numeric key
---good luck!
Signaler
0
0
BALTASAR
#4
Membre enregistré
52 messages
Popularité : +3 (3 votes)
Posté le 19 août 2019 - 15:41
Maybe a solution
(
not perfect
,
but it works
!
)
:
---declare a global boolean variable gbSendingKeys:
Procedure MyWindow
gb
SendingKeys
is boolean
=
False
---then at key pressed event of scheduler:
key pressed
(
WM_CHAR
)
of SCH_Noname1
IF
NOT
gb
SendingKeys
THEN
IF
_EVE.wParam
>
=
48
_AND_
_EVE.wParam
<
=
57
THEN
gb
SendingKeys
=
True
s
Key
is string
=
Charact
(
Val
(
_EVE.wParam
)
)
MyKeys
is string
=
"A"
+
Charact
(
8
) +
s
Key
// sorry NOT Smiley !!!
SendKey
(
MyKeys
)
gb
SendingKeys
=
False
END
END
--- all I do is intercept keypress of numeric key, send an alphanumeric ("A"), delete it, and then the numeric key
---good luck!
Signaler
0
0
Marc MUYLAERT
#5
Membre enregistré
9 messages
Popularité : +1 (1 vote)
Posté le 19 août 2019 - 17:57
Hi,
If you want a direct access to a schedule, not with the aaf, it is not possible to start a new appointment with a number.
it seems a numeric is not triggering a 'before creation appointment', but a letter does.
I have send PCSOFT a test project, they should change this behaviour.
But WM_CHAR is filled so with a call to the procedure "entry in edit" should do the trick and insert the number with sendkeys.
I will try this.
thx.
Signaler
0
0
→ Revenir à WINDEV 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