How to retrieve handle of just-brushed object (again!)

조회 수: 1 (최근 30일)
David Goldsmith
David Goldsmith 2013년 3월 8일
Seems I asked this question almost two years ago; I got one answer, but it wasn't sufficient (I didn't fully realize why at the time), 'cause it explained how to retrieve ALL brushed objects, but here's the rub: in my use case, an object may already be brushed, and I need to be able to distinguish, e.g., in the WindowButtonUpEvent handler, the FRESHLY-brushed object from the old brushed object (so that I can clear the old of its brushing). It just occurred to me that the cumbersome, "brute-force" way to do this would be to keep track of the brushed objects and, in the brush object's WindowButtonUpEvent handler, compare brushed objects w/ the existing set: the set-difference is the new one--is this really the way MathWorks expects us to do this chore? I hope not.

답변 (1개)

David Goldsmith
David Goldsmith 2013년 3월 8일
Sorry for the noise, I finally found it in the online doc:
supposed to use Action Pre/Post Callbacks; brushed axis is the sole element of the event data passed to the callback.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by