Fórum How Can I clean the mouse buffer Delphi #586678
11/10/2017
0
Hi, I am using the procedure below but the Delphi says "undeclared identifier" to TMsg and PeekMessage.
Someone can Helpe me please?
I´m using delphi tokyo 10.2.1 and this app is to IOS and Android.
procedure TForm1.EmptyMouseQueue;
var
Msg: TMsg;
begin
while PeekMessage( Msg, 0, WM_MOUSEFIRST, WM_MOUSELAST,
PM_REMOVE or PM_NOYIELD )
do;
end;
Someone can Helpe me please?
I´m using delphi tokyo 10.2.1 and this app is to IOS and Android.
procedure TForm1.EmptyMouseQueue;
var
Msg: TMsg;
begin
while PeekMessage( Msg, 0, WM_MOUSEFIRST, WM_MOUSELAST,
PM_REMOVE or PM_NOYIELD )
do;
end;
Roberto
Curtir tópico
+ 0
Responder
Post mais votado
13/10/2017
Good Morning,
PeekMessage is a function of windows API.
Add in WinApi.Windows form uses.
I'm not sure if it will work in your environment (app is to IOS and Android).
PeekMessage is a function of windows API.
Add in WinApi.Windows form uses.
I'm not sure if it will work in your environment (app is to IOS and Android).
Natanael Ferreira
Responder
Gostei + 1
Mais Posts
13/10/2017
Roberto
Thanks.
it is not working with IOS and Android.
I Put WinApi.windows and work with windows but theses const are not find "WM_MOUSEFIRST" and "WM_MOUSELAST". Could you help me?
it is not working with IOS and Android.
I Put WinApi.windows and work with windows but theses const are not find "WM_MOUSEFIRST" and "WM_MOUSELAST". Could you help me?
Responder
Gostei + 0
13/10/2017
Natanael Ferreira
These constants "WM_MOUSEFIRST" and "WM_MOUSELAST" are part of the Winapi.Messages library.
Add Winapi.Messages in the form's uses clause and test again.
Add Winapi.Messages in the form's uses clause and test again.
Responder
Gostei + 1
Clique aqui para fazer login e interagir na Comunidade :)