Board index » delphi » Mouse blocks windows message qeue?
smi...@lantic.net (Johan Smit)
![]() Delphi Developer |
Fri, 28 Oct 2005 15:34:43 GMT
|
smi...@lantic.net (Johan Smit)
![]() Delphi Developer |
Fri, 28 Oct 2005 15:34:43 GMT
Mouse blocks windows message qeue?
Hi,
In an application, I use a thread to do processing to keep the user interface live. The Thread does sql queries in the background. When the thread is done, the thread post a 'Done' message, and the thread is suspended.. The received message then causes screen update. This works well, but the user can totally prevent the screen update by holding the mouse button down. The 'Done' message is still posted, but no message is received by the main thread. Any suggestions please? Thank you Johan Smit |
Bj?rge S?the
![]() Delphi Developer |
Fri, 28 Oct 2005 16:19:54 GMT
Re:Mouse blocks windows message qeue?"Johan Smit" <smi...@lantic.net> skrev i melding news:3ebf4e4e.12176980@news.saix.net... Quote> Hi, button pressed and expect things to happen ? -- Bj?rge S?ther |
J Fren
![]() Delphi Developer |
Fri, 28 Oct 2005 17:06:01 GMT
Re:Mouse blocks windows message qeue?On Mon, 12 May 2003 07:34:43 GMT, smi...@lantic.net (Johan Smit) wrote: Quote>Hi, It might be that it is received but not acted on |
J Fren
![]() Delphi Developer |
Fri, 28 Oct 2005 17:35:26 GMT
Re:Mouse blocks windows message qeue?On Mon, 12 May 2003 10:19:54 +0200, "Bj?rge S?ther" Quote<bjorge@hahaha_itte.no> wrote: Quote>I somewhat believed this was standard behaviour. Why would anyone keep mouse Quote
- which is not what they really expected - or wanted And that Jay Garner guy (no relation to the amusing actor James An interesting situation ... a bit of an 'own goal' ... |
Johan Sm
![]() Delphi Developer |
Sat, 29 Oct 2005 12:18:03 GMT
Re:Mouse blocks windows message qeue?On Mon, 12 May 2003 10:19:54 +0200, "Bj?rge S?ther" Quote<bjorge@hahaha_itte.no> wrote: Thank you. It appears to be natural to keep the left button down when scrolling, then not to release the mouse button. Result = no screen update. Any suggestions? Regards Johan Smit |
Johan Sm
![]() Delphi Developer |
Sat, 29 Oct 2005 12:18:05 GMT
Re:Mouse blocks windows message qeue?On Mon, 12 May 2003 09:06:01 GMT, Bounce_It_je...@iss.u-net.com_.bin Quote(J French) wrote: Thank you Yes, I am sure. I put a debugging log thing in there. Definitely, the message is sent, but not received. If the user let go of the mouse button, the message is received. Regards Johan Smit |
Rob Kenned
![]() Delphi Developer |
Sat, 29 Oct 2005 13:11:58 GMT
Re:Mouse blocks windows message qeue?QuoteJohan Smit wrote: is down. How are you sending the message from your thread object to your main -- |
Johan Sm
![]() Delphi Developer |
Mon, 31 Oct 2005 12:11:52 GMT
Re:Mouse blocks windows message qeue?On Tue, 13 May 2003 00:11:58 -0500, Rob Kennedy <rkenn...@cs.wisc.edu> wrote: Hi Rob, Quote
procedure. When the mouse button is down, the message is not received at all. Quote>How does the main thread received. It loads a list into a HTML component. Regards Johan Smit |
Bj?rge S?the
![]() Delphi Developer |
Mon, 31 Oct 2005 14:38:05 GMT
Re:Mouse blocks windows message qeue?"Johan Smit" <smi...@lantic.net> skrev i melding news:3ec311b5.1020279@news.saix.net... Quote> On Tue, 13 May 2003 00:11:58 -0500, Rob Kennedy <rkenn...@cs.wisc.edu> -- Bj?rge S?ther |
Bj?rge S?the
![]() Delphi Developer |
Mon, 31 Oct 2005 15:35:36 GMT
Re:Mouse blocks windows message qeue?"Johan Smit" <smi...@lantic.net> skrev i melding news:3ec311b5.1020279@news.saix.net... Quote> On Tue, 13 May 2003 00:11:58 -0500, Rob Kennedy <rkenn...@cs.wisc.edu> -- Bj?rge S?ther |
Johan Sm
![]() Delphi Developer |
Fri, 04 Nov 2005 12:27:39 GMT
Re:Mouse blocks windows message qeue?On Thu, 15 May 2003 09:35:36 +0200, "Bj?rge S?ther" Quote<bjorge@hahaha_itte.no> wrote: Does not work on the thread, not sure why, but the message never gets received. I dumped the entire thread idea, I have spent too much time on it, and it is still not user friendly. Now I have a TQuery, Datasource, and DBGrid in the main thread. DataSource.OnDataChange: Timer1.enabled := false; Timer1.enabled := true; Timer1.OnTimer: GetInfo(Self); GetInfo then runs another query and TTables to populate the rest of the page. This works well, the user interface is responsive. There is an unexpected snag: DBGrid1.OnKeyup: qM.Locate('Name',char(Key),[loPartialkey]); This is the only on key handler in the unit, and the form key preview is set to false. There are a few bitbuttons on a panel on the form for Close, Help and Print, and the captions of these are : &Close, &Help, and &Print. These accelerator keys are supposed to work from the keyboard Alt-C etc keys. So help me, if the user presses a P key while the focus is on the dbgrid, the print routine is started. Similarly, to get a name starting with C, the query does not find the names starting with C, the form is closed. Accellerator keys are supposed to work with the Alt keys. I cannot catch this keystroke anywhere. What am I doing wrong please? Thank you Johan Smit |
Johan Sm
![]() Delphi Developer |
Fri, 04 Nov 2005 12:36:47 GMT
Re:Mouse blocks windows message qeue?On Thu, 15 May 2003 09:35:36 +0200, "Bj?rge S?ther" Quote<bjorge@hahaha_itte.no> wrote: Does not work on the thread, not sure why, but the message never gets received. I dumped the entire thread idea, I have spent too much time on it, and it is still not user friendly. Now I have a TQuery, Datasource, and DBGrid in the main thread. DataSource.OnDataChange: Timer1.enabled := false; Timer1.enabled := true; Timer1.OnTimer: GetInfo(Self); GetInfo then runs another query and TTables to populate the rest of the page. This works well, the user interface is responsive. There is an unexpected snag: DBGrid1.OnKeyup: qM.Locate('Name',char(Key),[loPartialkey]); This is the only on key handler in the unit, and the form key preview is set to false. There are a few bitbuttons on a panel on the form for Close, Help and Print, and the captions of these are : &Close, &Help, and &Print. These accelerator keys are supposed to work from the keyboard Alt-C etc keys. So help me, if the user presses a P key while the focus is on the dbgrid, the print routine is started. Similarly, to get a name starting with C, the query does not find the names starting with C, the form is closed. Accellerator keys are supposed to work with the Alt keys. I cannot catch this keystroke anywhere. What am I doing wrong please? Thank you Johan Smit |
Johan Sm
![]() Delphi Developer |
Sat, 05 Nov 2005 12:31:35 GMT
Re:Mouse blocks windows message qeue?On Thu, 15 May 2003 09:35:36 +0200, "Bj?rge S?ther" Quote<bjorge@hahaha_itte.no> wrote: Does not work on the thread, not sure why, but the message never gets received. I dumped the entire thread idea, I have spent too much time on it, and it is still not user friendly. Now I have a TQuery, Datasource, and DBGrid in the main thread. DataSource.OnDataChange: Timer1.enabled := false; Timer1.enabled := true; Timer1.OnTimer: GetInfo(Self); GetInfo then runs another query and TTables to populate the rest of the page. This works well, the user interface is responsive. There is an unexpected snag: DBGrid1.OnKeyup: qM.Locate('Name',char(Key),[loPartialkey]); This is the only on key handler in the unit, and the form key preview is set to false. There are a few bitbuttons on a panel on the form for Close, Help and Print, and the captions of these are : &Close, &Help, and &Print. These accelerator keys are supposed to work from the keyboard Alt-C etc keys. So help me, if the user presses a P key while the focus is on the dbgrid, the print routine is started. Similarly, to get a name starting with C, the query does not find the names starting with C, the form is closed. Accellerator keys are supposed to work with the Alt keys. I cannot catch this keystroke anywhere. What am I doing wrong please? Thank you Johan Smit |
1. HELP: Hook mouse message in Windows
2. HELP: Hook mouse message in Windows
3. Help with mouse button down, OnMouseDown, and Windows messages
4. Post Mouse Messages to a window?
5. resize-bar mouse message nullifies CM_MOUSELEAVE message..
6. Partly block keyboard mouse events
7. How Block Mouse Click in ListBox?