Non-modal mouse tracking

From: [at]} <Josef>
Date: Fri, 30 Nov 2007 15:31:00 +0100

----boundary-LibPST-iamunique-424380286_-_-
Content-type: text/plain

Non-modal mouse tracking (alias executing services within a mouse tracking loop)
has at least the following problem, I guess:
You cannot be sure that the view is unchanged while you are
tracking the mouse. Everything may happen including moving or closing the window,
updating the view contents the mouse is moving over etc.
This would significantly complicate all peaces of code that
use modal mouse tracking now.

As a simple workaround I could imagine to provide
a global hook within Ports.Frame.Input() (or some similar central place)
that allows one to extend any mouse tracking loop by application specific code.
It would then be the application developer's task to ensure that
there is no change of any data structure that affects existing
mouse tracking code.
If there is for example some data aquisition into an internal buffer being done
in this hook, the text or form controllers or whatever mouse tracking loop
would not notice that and would of course work as before.

- Josef Templ



----- Original Message -----
From: "Wojtek Skulski" <skulski{([at]})nowhere.xy
To: <BLACKBOX{([at]})nowhere.xy
Sent: Thursday, November 29, 2007 5:10 PM
Subject: Re: Inofficial BlackBox 2.0


> On Thu, 29 Nov 2007, Alexander Iljin wrote:
>

>> I adopted and then slightly enchanced Marco's solution.
>> I'll quote the OMinc tech support on this matter:
>>
>> > We intentionally decided not to apply Marco's entire patch to
>> > HostPorts.Rider.Input: We included the statement WinApi.Sleep(1)
>> > but we deliberately left out the proposed call to
>> > Services.actionHook.Step.
>> (Posted in this list on May 26, 2007.)

>
> I am hoping OMinc will address the problem of Services being
> blocked by the mouse. The present situation with the background
> actions being stopped by the mouse is truly unacceptable.
>
> Wojtek
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-424380286_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbD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Lk9CRVJPTi5DSFxwYXINClxwYXINClxwYXINCi0t
LS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZG
IEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQBkZW5j
----boundary-LibPST-iamunique-424380286_-_---
Received on Fri Nov 30 2007 - 15:31:00 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:12 UTC