|
| Iniciado por marc.muylaert, 12,ago. 2019 17:08 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 12,agosto 2019 - 17:08 |
Hi, My client needs to enter only some codes in the scheduler, mostly numerical codes. It seems absurd but when I create a standard scheduler control and try to enter only a number (as a title), nothing happens. It seems the first character must be a letter?? Adding an appointment with programming is no problem, it's just the direct interface (with ot without IW_windevviewAPT)
anyone? |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 52 mensajes |
|
| Publicado el 19,agosto 2019 - 11:17 |
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! |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 52 mensajes |
|
| Publicado el 19,agosto 2019 - 15:37 |
Maybe a solution (not perfect, but it works!):
Procedure MyWindow gbSendingKeys is boolean = False
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
Mensaje modificado, 19,agosto 2019 - 15:39 |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 9 mensajes |
|
| Publicado el 22,agosto 2019 - 10:56 |
follow-up I made a test application for PCsoft.
They aknowledged the issue that on a schedule (without using aaf) you are able to select a day, are able to enter letters as the first character - thus creating te appointment, but the same action is not started when entering a number as the first character of your appointment. Case has now been send to the developers to verify this behaviour - and correct this. thx |
| |
| |
| | | |
|
| | | | |
| | |
|