Mouse - exclude use of - Delphi
This is a discussion on Mouse - exclude use of - Delphi ; We have a neat POS system. To safeguard against fraud we wish to lock out
the use of the mouse in the actual Till section.
Is there a simple method to this? Any suggestions greatly welcomed.
Best regards
Colin Bompas...
-
Mouse - exclude use of
We have a neat POS system. To safeguard against fraud we wish to lock out
the use of the mouse in the actual Till section.
Is there a simple method to this? Any suggestions greatly welcomed.
Best regards
Colin Bompas
-
Re: Mouse - exclude use of
Colin Bompas wrote:
>
>
> We have a neat POS system. To safeguard against fraud we wish to lock
> out the use of the mouse in the actual Till section. Is there a
> simple method to this? Any suggestions greatly welcomed. Best
> regards Colin Bompas
Something like it?
http://www.swissdelphicenter.ch/torr...ode.php?id=312
Regards,
--
-
Re: Mouse - exclude use of
Colin Bompas wrote:
> We have a neat POS system. To safeguard against fraud we wish to lock out
> the use of the mouse in the actual Till section.
> Is there a simple method to this? Any suggestions greatly welcomed.
How can you use the mouse to commit fraud?
--
Rob
-
Re: Mouse - exclude use of
Hi Rob
Lockout of the mouse means operator can only use keyboard in a specific way.
We are always concerned that the use of "Fraudulent Mouse" may start a world
wide slippery slide. Hence "Ban the Mouse"
Colin
"Rob Kennedy" <me3@privacy.net> wrote in message
news:4829b987$1@newsgroups.borland.com...
> Colin Bompas wrote:
>> We have a neat POS system. To safeguard against fraud we wish to lock out
>> the use of the mouse in the actual Till section.
>> Is there a simple method to this? Any suggestions greatly welcomed.
>
> How can you use the mouse to commit fraud?
>
> --
> Rob
-
Re: Mouse - exclude use of
In Application.OnMessage, trap the rang eof WM_MOUSExxx messages...
DH
-
Re: Mouse - exclude use of
Colin Bompas wrote:
> "Rob Kennedy" <me3@privacy.net> wrote in message
> news:4829b987$1@newsgroups.borland.com...
>> Colin Bompas wrote:
>>> We have a neat POS system. To safeguard against fraud we wish to lock out
>>> the use of the mouse in the actual Till section.
>>> Is there a simple method to this? Any suggestions greatly welcomed.
>>
>> How can you use the mouse to commit fraud?
>
> Lockout of the mouse means operator can only use keyboard in a specific way.
> We are always concerned that the use of "Fraudulent Mouse" may start a world
> wide slippery slide. Hence "Ban the Mouse"
I don't see where that was an answer to my question.
--
Rob
-
Re: Mouse - exclude use of
In article <4829ad09$1@newsgroups.borland.com>, "Colin Bompas"
<colinbompas@ascii.co.za> wrote:
>
>
> We have a neat POS system. To safeguard against fraud we wish to lock out
> the use of the mouse in the actual Till section.
> Is there a simple method to this? Any suggestions greatly welcomed.
SetCapture - WinAPI routine.
I find SetCapture(Application.handle); disables the mouse well enough.
When I want to re-enable the mouse I first do
Application.Processmessages;
- so any clicks etc in the queue get eaten, then
ReleaseCapture;
... but if your app is multithreaded, you may have to use a different handle
to catch the mouse, or even create a window just for that purpose.
-
Re: Mouse - exclude use of
Colin Bompas wrote:
> We have a neat POS system. To safeguard against fraud we wish to lock out
> the use of the mouse in the actual Till section.
> Is there a simple method to this? Any suggestions greatly welcomed.
> Best regards
> Colin Bompas
>
>
Can you simply remove any mouse events from the objects in the Till section?
-
Re: Mouse - exclude use of
Rob- use of a mouse within the Till section, COULD allow the operator to
manipulate the entries made and possibly edit them somehow. It hasn't
happened as yet, but I need to make the thing totally free from any possible
interference. I come from an old style background.. I worked for NCR in its
hay days - we always attempted to keep any chance of fraud away from the
user. (For their own good). I hope that satisfies your question.
-- Colin
"Rob Kennedy" <me3@privacy.net> wrote in message
news:482a4510@newsgroups.borland.com...
> Colin Bompas wrote:
>> "Rob Kennedy" <me3@privacy.net> wrote in message
>> news:4829b987$1@newsgroups.borland.com...
>>> Colin Bompas wrote:
>>>> We have a neat POS system. To safeguard against fraud we wish to lock
>>>> out the use of the mouse in the actual Till section.
>>>> Is there a simple method to this? Any suggestions greatly welcomed.
>>>
>>> How can you use the mouse to commit fraud?
>>
>> Lockout of the mouse means operator can only use keyboard in a specific
>> way. We are always concerned that the use of "Fraudulent Mouse" may start
>> a world wide slippery slide. Hence "Ban the Mouse"
>
> I don't see where that was an answer to my question.
>
> --
> Rob
-
Re: Mouse - exclude use of
"Colin Bompas" <colinbompas@ascii.co.za> wrote in message
news:482a8b52$1@newsgroups.borland.com...
> Rob- use of a mouse within the Till section, COULD allow the operator to
> manipulate the entries made and possibly edit them somehow. It hasn't
> happened as yet, [...]
It hasn't happened yet because it doesn't really make any sense that it
could. If there is some editable control the user should not be able to
change, make it read-only. The mouse cannot undo that in any way. In this
sense the mouse is just an alternative to using the tab key. It can do
nothing on its own unless your application specifically allows it, and you
certainly cannot enter keystrokes with it. The closest it can come to that
is if you *enable* drag and drop so a user can drag existing text from one
place to another, but drag and drop has to be explicitly enabled and handled
by the application.
--
Wayne Niddery - TeamB (www.teamb.com)
Winwright, Inc. (www.winwright.ca)