PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → scheduler direct entree
scheduler direct entree
Started by Marc Muylaert, Aug., 16 2019 9:58 AM - 4 replies
Posted on August, 16 2019 - 9:58 AM
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..
Registered member
9 messages
Popularité : +1 (1 vote)
Posted on August, 17 2019 - 10:13 AM
I mean direct entry ... spend to much time writing and speaking french lately
Registered member
52 messages
Popularité : +3 (3 votes)
Posted on August, 19 2019 - 11:13 AM
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(8) + 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!
Registered member
52 messages
Popularité : +3 (3 votes)
Posted on August, 19 2019 - 3:41 PM
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( 8 ) + sKey // sorry NOT Smiley !!!
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!
Registered member
9 messages
Popularité : +1 (1 vote)
Posted on August, 19 2019 - 5:57 PM
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.