필터 지우기
필터 지우기

CaretPositionChanged callback for editbox not working

조회 수: 1 (최근 30일)
Niko
Niko 2014년 7월 24일
댓글: Geoff Hayes 2014년 7월 25일
Hi all,
I'm trying to detect when the position of the cursor in an editbox changes. This is the current code I'm using in the figure's opening function:
jEdit=findjobj(myEditbox);
set(jEdit, 'CaretPositionChangedCallback', @myCallback);
But for some reason it doesn't work. Other callbacks such as InputMethodtextChangedCallback works fine, but that's not what I need.
Does anyone know how to fix it?
Thanks a lot!
Niko
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 7월 25일
I saw a couple of Java-only posts that indicated that they had the same problem with this event. The solution was to use a document listener which may not be applicable here for this undocumented (and so unsupported) MATLAB callback.
Out of curiosity, what are you trying to accomplish by using this event? Perhaps there is an alternative?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by