Re: interpreting mouse and key presses

From: [at]} <Gérard>
Date: Thu, 12 Jun 2003 15:14:32 +0200

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

---- Original Message -----
From: Mary Kynn <m.kynn{([at]})nowhere.xy
To: <blackbox{([at]})nowhere.xy
Sent: Thursday, June 12, 2003 6:50 AM
Subject: interpreting mouse and key presses


> 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

The two messages will arrive one after the other. May be you can memorize
the first message and choose which action to take when the second message
arrives.

Grard

--------------------------------------------

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-1123061690_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lz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YXINClxwYXINCmIp
IElmLCBmb3Igc29tZSByZWFzb24sIHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBi
eSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRl
ZCB0byBhdm9pZCBzcGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBv
ZnRlbiBjYXVzZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9s
eWRheX19AHU+DQpUbw=


----boundary-LibPST-iamunique-1123061690_-_---
Received on Thu Jun 12 2003 - 15:14:32 UTC

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