- Dragging

From: [at]} <Gérard>
Date: Sun, 24 Sep 2006 17:24:03 +0200

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

Douglas G. Danforth a crit :
> Grard,
>
> 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
You may be right. But RestoreDomain works well with f.Input for standard
views, so I'm a little sceptical. Another way is to to call the Restore
method of the view from its HandleViewMsg procedure.

Grard

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


----boundary-LibPST-iamunique-257047540_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBEb3VnbGFzIEcuIERhbmZvcnRo
IGEgXCdlOWNyaXQgOlxwYXINCj4gR1wnZTlyYXJkLFxwYXINCj5ccGFyDQo+IFRoZSBleGFtcGxl
Olxw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XMgYWN0aW9uIHRv
IGhhbmRsZSB0aGUgXHBhcg0KPiBmLklucHV0IGNhbGxzLlxwYXINCj5ccGFyDQo+IC1Eb3VnXHBh
cg0KWW91IG1heSBiZSByaWdodC4gQnV0IFJlc3RvcmVEb21haW4gd29ya3Mgd2VsbCB3aXRoIGYu
SW5wdXQgZm9yIHN0YW5kYXJkIFxwYXINCnZpZXdzLCBzbyBJJ20gYSBsaXR0bGUgc2NlcHRpY2Fs
LiBBbm90aGVyIHdheSBpcyB0byB0byBjYWxsIHRoZSBSZXN0b3JlIFxwYXINCm1ldGhvZCBvZiB0
aGUgdmlldyBmcm9tIGl0cyBIYW5kbGVWaWV3TXNnIHByb2NlZHVyZS5ccGFyDQpccGFyDQpHXCdl
OXJhcmRccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAg
b3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNofX0Ab2Jlcm9uLgAGAA=


----boundary-LibPST-iamunique-257047540_-_---
Received on Sun Sep 24 2006 - 17:24:03 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:32:15 UTC