Paradox Community

Items in pnews.paradox-client_server

Subject:Re: Performance Issue Mouse
Date:Thu, 26 Apr 2018 22:07:32 +1000
From:Leslie <"ViaThe List">
Strange as this was a common solution back in the day especially with a 
Sybase database.

Are you sure you specified an appropriate Window Handle - remember a 
hidden Window cannot be used but also it should not be one of your 
current Windows either because they are likely the problem.

So assuming all is ok with the hWnd then it implies that somewhere in 
the Paradox system (in all probability in your code) the Mouse Messages 
are in fact triggering an action which causes the delay.

You have just about proven this fact by your statement that if the user 
moves the mouse back over the Window, after you programmatically moved 
it, while the SQL job still runs then it slows.

To be more specific, my guess is that either a Window or a Field is 
trapping and acting upon either the WM_MOUSEMOVE or WM_NCMOUSEMOVE 
messages. Unless you are using TrackMouseEvent() to enable WM_HOVER and 
WM_LEAVE directly.

So, to be certain I would use WinSpy++ to see what messages are being 
sent to which underlying Window while the flickering occurs.

Lastly, what happens with the performance if you just hide the mouse 
cursor does performance improve or not.

It is an interesting problem.

On 26/04/2018 9:36 PM, Thies Grimm wrote:
> Hi Leslie,
> very nice idea, but doesn't work.
> As Workaround I use something like this (moving the mouse off the Desktop):
> pntMouse = getMouseScreenPosition()
> setMouseScreenPosition(-10,-10)
> ... doing my SQL-Jobs ...
> setMouseScreenPosition(pntMouse)
> The disadvantage is that there is no mouse at all during the SQL-Jobs, but
> as long as the user doesn't move the mouse back it is fast - much faster.
> On the Notebook 10 times faster!
> I would love to get any idea how to solve that issue in a better way.
> Thies
> Leslie <"ViaThe List"> wrote:
>> Try SetCapture() and ReleaseCapture()
>> On 25/04/2018 12:45 AM, Thies Grimm wrote:
>>> Hi,
>>> How can I stop the mouse flickering during SQL-jobs.
>>> When I move the mouse out of the paradox-window the action is almost two
>>> times faster!
>>> SetMouseShape(NoMouse, True) doesn’t work either delayScreenUpdates.
>>> Thies
>> ---
>> This email has been checked for viruses by AVG.

Copyright © 2004