----boundary-LibPST-iamunique-809463466_-_-
Content-type: text/plain
Gérard,
The example:
o View displaying a bitmap image
o Square box boarder written into view that will be moved by mouse dragging.
o Wrapper surrounding view that catches mouse events
o mouseHandler installed in wrapper view
o mouseHandler is called on TrackMsg and f.Input
o mouseHandler routine performs Views.Update (or Views.RestoreDomain)
If Views.RestoreDomain is called then nothing works (neither single
clicks nor
mouse dragging refreshes the screen). If Views.Update is call then single
clicks works correctly (box is moved to cursor location).
I think the problem is in letting the system "breath" so that messages
are passed
correctly. I am about to implement a Services action to handle the
f.Input calls.
-Doug
Gérard Meunier wrote:
> Douglas G. Danforth a écrit :
>> Gerard,
>>
>> Oops, nope. If I use Views.RestoreDomain() then not even a single
>> mouse click
>> will move my box.
>> -Doug
>>
>>
>> Gérard Meunier wrote:
>>> Douglas G. Danforth a écrit :
>>>> The issue is how to update the screen while the mouse is down.
>>>> I have been using Views.Update(v, Views.keepFrames). This does not
>>>> seem to take effect until the mouse has been released.
>>>>
>>>> What other way can I update the screen (give feed back to the user
>>>> that
>>>> some object is being dragged)?
>>>>
>>> You can use Views.RestoreDomain(v.Domain()).
>>>
>>> Cheers.
>>>
>>> Gérard
>> Could you give a complete simple working example, so that I can
>> understand what happens. Thanks.
>
> Gérard
>
> --- BlackBox
> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
>
>
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-809463466_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAg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