interpreting mouse and key presses
----boundary-LibPST-iamunique-1625119170_-_-
Content-type: text/plain
Hi All,
I have a small problem with handling control messages for my view. The view
displays a graph which contains 'figures' (points on the graphs, axis
labels etc)which are managed via clicking and dragging; and interpreting
keyboard input eg tabs. What I would like to do is have the view interpret
keyboard and mouse together (not using the modifiers): say, down arrow and
mouse click, to draw a figure on the graph differently from an up arrow and
mouseclick. (Arrow determines type to draw and mouse click determines
where.)
PROCEDURE (v: View) HandleCtrlMsg*
WITH msg: Controllers.PollOpsMsg DO
| msg: Controllers.TrackMsg DO (for mouse action)
(I'm using a mouse tracking loop similar to the Buttons example...)
| msg: Controllers.EditMsg DO (for keyboard action)
I can't seem to interpret two messages together?
Many Thanks
Mary Kynn
********************************************************
* . Mary Kynn m.kynn{([at]})nowhere.xy
* _--_|\ School of Mathematical Sciences *
* / QUT Queensland University of Technology *
* \_.--._/ GPO Box 2434 Brisbane Q 4001 AUSTRALIA *
* v Phone: +61 7 3864 1293 *
* Fax: +61 7 3864 2310 *
********************************************************
CRICOS No. 00213J
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-1625119170_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xm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OiBDb250cm9sbGVycy5Q
b2xsT3BzTXNnIERPXHBhcg0KICAgIFxwYXINCiAgIHwgbXNnOiBDb250cm9sbGVycy5UcmFja01z
ZyBETyAgKGZvciBtb3VzZSBhY3Rpb24pXHBhcg0KICAgKEknbSB1c2luZyBhIG1vdXNlIHRyYWNr
aW5nIGxvb3Agc2ltaWxhciB0byB0aGUgQnV0dG9ucyBleGFtcGxlLi4uKSBccGFyDQpccGFyDQog
ICB8IG1zZzogQ29udHJvbGxlcnMuRWRpdE1zZyBETyAgICAoZm9yIGtleWJvYXJkIGFjdGlvbilc
cGFyDQpccGFyDQogICBJIGNhbid0IHNlZW0gdG8gaW50ZXJwcmV0IHR3byBtZXNzYWdlcyB0b2dl
dGhlcj9ccGFyDQpccGFyDQpNYW55IFRoYW5rc1xwYXINCk1hcnkgS3lublxwYXINClxwYXINCioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXHBh
cg0KKiAgICAgICAuICAgICAgIE1hcnkgS3lubiAgICAgICBtLmt5bm5AcXV0LmNvbSAgICAgICAg
ICpccGFyDQoqICAgXy0tX3xcXCAgICAgIFNjaG9vbCBvZiBNYXRoZW1hdGljYWwgU2NpZW5jZXMg
ICAgICAgICpccGFyDQoqICAvICAgICAgUVVUICAgUXVlZW5zbGFuZCBVbml2ZXJzaXR5IG9mIFRl
Y2hub2xvZ3kgICAgKlxwYXINCiogIFxcXy4tLS5fLyAgICAgR1BPIEJveCAyNDM0IEJyaXNiYW5l
IFEgNDAwMSBBVVNUUkFMSUEgKlxwYXINCiogICAgICAgIHYgICAgICBQaG9uZTogICs2MSA3IDM4
NjQgMTI5MyAgICAgICAgICAgICAgICAqXHBhcg0KKiAgICAgICAgICAgICAgIEZheDogICAgKzYx
IDcgMzg2NCAyMzEwICAgICAgICAgICAgICAgICpccGFyDQoqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxwYXINC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