GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
appointment title
appointment title
Iniciado por Marc Muylaert, ago., 12 2019 5:08 PM - 3 respostas
Conecte-se…
Marc Muylaert
#1
Publicado em agosto, 12 2019 - 5:08 PM
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?
Denunciar
0
0
BALTASAR
#2
Membro registado
52 mensagems
Popularité : +3 (3 votes)
Publicado em agosto, 19 2019 - 11:17 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(
+ 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!
Denunciar
0
0
BALTASAR
#3
Membro registado
52 mensagems
Popularité : +3 (3 votes)
Publicado em agosto, 19 2019 - 3:37 PM
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
// Not Smiley ... LOL
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!
Mensagem modificada, agosto, 19 2019 - 3:39 PM
Denunciar
0
0
Marc MUYLAERT
#4
Membro registado
9 mensagems
Popularité : +1 (1 vote)
Publicado em agosto, 22 2019 - 10:56 AM
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
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto