I was looking in the aquaterm is it is an amazing application for real
I downloaded the latest one and looked into the c api examples that you include.
I checked the eventdemo1. I was thinking of using this to do a very
simple drag and
My question is:
Is it possible to pass back to the application (eventhandler1) other than the
click events, some kind of drag information. For example the position
of the mouse
cursor while having the mouse clicked?
From: Per Persson <persquare@ma...> - 2004-12-14 20:20:17
On Dec 11, 2004, at 19:27, Panagiotis Sebos wrote:
> My question is:
> Is it possible to pass back to the application (eventhandler1) other
> than the
> click events, some kind of drag information. For example the position
> of the mouse
> cursor while having the mouse clicked?
No, currently not. The event mechanism is easily extended though and
adding support shouldn't be too difficult. Have a look at the way
events are generated in AQTView and follow e.g. a mouse down event all
the way to the client:
AQTView AQTPlot AQTClientManager
-mouseDown: --> -processEvent: --> -processEvent:sender:
The main work is to create an event description like the following
if ([self isProcessingEvents])
point = [self convertPoint:point fromView:nil];
point = [self convertPointToCanvasCoordinates:point];
[[[self window] delegate] processEvent:[NSString
stringWithFormat:@"1:%@:%d", NSStringFromPoint(point), button]];
The description is a string of the form <event_id>:<point>:<user_data>,
see AQTAdapter docs for a list of known event_id's.
Hope this helps,