From: us on
"Nick Stokes" <nickstokes5(a)gmail.com> wrote in message <hscktq$n69$1(a)fred.mathworks.com>...
> Walter Roberson <roberson(a)hushmail.com> wrote in message > I interpret the question as one of asking, "Is there a way to tell which
> > object would be selected or activated if one were to click at a given cursor
> > position?" -- which must be possible to find out in theory because Matlab has
> > to do the same kind of computation if a click is actually done.
> >
>
> yes, that is exactly what I am asking.
>
> > On the other hand, if that _is_ the question, then one starts getting into
> > issues about objects whose hittest is off,
> > [...]
>
> These are details, not really that pertinent. Let's assume easiest set or whatever matlab assumes when it determines CurrentObject of the figure.

well... it surely uses the position of the last m-click...
i guess it's obvious that CSSMers cannot really follow your problem...
you really should be more specific about what you want...

us
From: Nick Stokes on

> i guess it's obvious that CSSMers cannot really follow your problem...

What/who is "CSSMer"?

> you really should be more specific about what you want...
>

The question is a very simple one. But you're right, I should be more specific:

Prototype: H = PIXEL2HANDLE( HF, X, Y )

Given a figure HF, and the pixel coordinates X, Y relative to the lower-left corner of HF, identify the object H such that if there was to be a mouse click on that pixel coordinate, that object would be the "CurrentObject" of the figure HF. If there is no such object, H is empty.

> well... it surely uses the position of the last m-click...

So as you can see (I hope!) that the the crux of the question is we want to be able identify the object *without* the "m-click".
From: us on
"Nick Stokes" <nickstokes5(a)gmail.com> wrote in message <hseh12$6mh$1(a)fred.mathworks.com>...
>
> > i guess it's obvious that CSSMers cannot really follow your problem...
>
> What/who is "CSSMer"?
>
> > you really should be more specific about what you want...
> >
>
> The question is a very simple one. But you're right, I should be more specific:
>
> Prototype: H = PIXEL2HANDLE( HF, X, Y )
>
> Given a figure HF, and the pixel coordinates X, Y relative to the lower-left corner of HF, identify the object H such that if there was to be a mouse click on that pixel coordinate, that object would be the "CurrentObject" of the figure HF. If there is no such object, H is empty.
>
> > well... it surely uses the position of the last m-click...
>
> So as you can see (I hope!) that the the crux of the question is we want to be able identify the object *without* the "m-click".

firstly, CSSM is this NG: comp.soft-sys.matlab, and a CSSMer is a person romping in it...
then, did you consider a robot(?)...
eg,

http://www.mathworks.com/matlabcentral/newsreader/view_thread/243113#623942

us
From: Nick Stokes on
"us " <us(a)neurol.unizh.ch> wrote in message <hseps4$4sc$1(a)fred.mathworks.com>...

> > So as you can see (I hope!) that the the crux of the question is we want to be able identify the object *without* the "m-click".
>
> firstly, CSSM is this NG: comp.soft-sys.matlab, and a CSSMer is a person romping in it...
> then, did you consider a robot(?)...
> eg,
>
> http://www.mathworks.com/matlabcentral/newsreader/view_thread/243113#623942
>

thanks, this is interesting stuff. But seriously, that is not the answer -- and probably will not work optimally in general, e.g. in my case, which is to create an interactive plot interface via hovering over the figure sort-of-thing. -- We don't want to click or simulate a click. Actually we don't even want to update the CurrentObject of the figure.
From: someone on
"Nick Stokes" <nickstokes5(a)gmail.com> wrote in message <hsf26d$6be$1(a)fred.mathworks.com>...
> "us " <us(a)neurol.unizh.ch> wrote in message <hseps4$4sc$1(a)fred.mathworks.com>...
>
> > > So as you can see (I hope!) that the the crux of the question is we want to be able identify the object *without* the "m-click".
> >
> > firstly, CSSM is this NG: comp.soft-sys.matlab, and a CSSMer is a person romping in it...
> > then, did you consider a robot(?)...
> > eg,
> >
> > http://www.mathworks.com/matlabcentral/newsreader/view_thread/243113#623942
> >
>
> thanks, this is interesting stuff. But seriously, that is not the answer -- and probably will not work optimally in general, e.g. in my case, which is to create an interactive plot interface via hovering over the figure sort-of-thing. -- We don't want to click or simulate a click. Actually we don't even want to update the CurrentObject of the figure.

And I want world peace.