Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13475 > unrolled thread
| Started by | aurora baccio <aurorabaccio@gmail.com> |
|---|---|
| First post | 2021-11-22 05:01 -0800 |
| Last post | 2021-11-24 14:37 -0500 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
mouse aurora baccio <aurorabaccio@gmail.com> - 2021-11-22 05:01 -0800
Re: mouse "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-11-23 08:06 +0100
Re: mouse Alessandro Vacchiano <alessandro.vacchiano@gmail.com> - 2021-11-23 06:32 -0800
Re: mouse Jamal <nospam@example.com> - 2021-11-24 14:37 -0500
| From | aurora baccio <aurorabaccio@gmail.com> |
|---|---|
| Date | 2021-11-22 05:01 -0800 |
| Subject | mouse |
| Message-ID | <ec3a3f73-2db7-448e-9a08-34ef89a09d35n@googlegroups.com> |
Good morning, I have a question and I explain why. I am convinced that the episodic failure of a medical application depends on the fact that the secretaries continue to press the mouse button even though there is a warning of printing in progress or because they think that pressing the button will speed up the procedure. I have disabled the 'okay' keys for this very reason and re-enable them at the end of the printing procedure. But every now and then something happens. And always in the printing process. And there is no logical reason for the error. It simply freezes the pc. Is there any way to disable the mouse and then re-enable it ? If possible an example. Thanks for the help. Aurora Baccio
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2021-11-23 08:06 +0100 |
| Message-ID | <j03i75FeqroU1@mid.individual.net> |
| In reply to | #13475 |
Hi Aurora, IMHO this is not possible without administration rights, and even with that you risk that the mouse does not return reponsive immediatly after enabling it. Wolfgang aurora baccio wrote: > Good morning, > I have a question and I explain why. > I am convinced that the episodic failure of a medical application > depends on the fact that the secretaries continue to press the mouse > button even though there is a warning of printing in progress or > because they think that pressing the button will speed up the > procedure. I have disabled the 'okay' keys for this very reason and > re-enable them at the end of the printing procedure. But every now > and then something happens. And always in the printing process. And > there is no logical reason for the error. It simply freezes the pc. > Is there any way to disable the mouse and then re-enable it ? If > possible an example. Thanks for the help. Aurora Baccio --
[toc] | [prev] | [next] | [standalone]
| From | Alessandro Vacchiano <alessandro.vacchiano@gmail.com> |
|---|---|
| Date | 2021-11-23 06:32 -0800 |
| Message-ID | <5dc571d6-8b4a-4dba-9cce-fbc5e58ac982n@googlegroups.com> |
| In reply to | #13476 |
Try to use before start to print (first line) : LockWindowUpdate(self:Handle()) // self is the window <your code> LockWindowUpdate(null_ptr) look on win api documentation this stop any dispatch to the window Bye Alessandro.
[toc] | [prev] | [next] | [standalone]
| From | Jamal <nospam@example.com> |
|---|---|
| Date | 2021-11-24 14:37 -0500 |
| Message-ID | <snm49v$5ca$1@dont-email.me> |
| In reply to | #13475 |
Aurora,
You cannot blame this on the user in a desktop application!
If it were was a web application, then I would say that it is possible
that a user clicks a button more than once, causing multiple execution
of same methods; even then there ways to prevent that.
Going back to your issue, you may add a flag variable to indicate that
printing is in progress:
For example:
In your print method,
IF !SELF:lPrinting
SELF:lPrinting := TRUE
ELSE
RETURN NIL //
ENDIF
// handle your printing
// Finished printing
SELF:lPrinting = FALSE
RETURN NIL
If after you implement something similar to the above and you still have
the same PC freeze issue, then you need to look deeper at your code
logic or other factors like networking.
Jamal
On 11/22/2021 8:01 AM, aurora baccio wrote:
> Good morning,
> I have a question and I explain why.
> I am convinced that the episodic failure of a medical application depends on the fact that the secretaries continue to press the mouse button even though there is a warning of printing in progress or because they think that pressing the button will speed up the procedure. I have disabled the 'okay' keys for this very reason and re-enable them at the end of the printing procedure. But every now and then something happens. And always in the printing process. And there is no logical reason for the error. It simply freezes the pc.
> Is there any way to disable the mouse and then re-enable it ?
> If possible an example.
> Thanks for the help.
> Aurora Baccio
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web