use listbox to search data inside a uitable

조회 수: 1 (최근 30일)
Giovanni
Giovanni 2011년 10월 4일
Hello everyone!
This time I have a question regarding uitable and listbox components. I have created a GUI where a table is filled with some data (the first columns are actually timestamps), and a listbox keeping track of some warnings containing a timestamp next to a message (saved as strings). What I would like to be able to do now, is to click for instance on a line of the listbox, compare it with the timestamps inside the data set of the uitable and let the uitable scroll directly to the interested line.
How can I manage this?

답변 (1개)

Walter Roberson
Walter Roberson 2011년 10월 4일
I suspect you would need to work at the Java level in order to scroll the uitable. If I recall past discussion, even just changing the selected object in a uitable doesn't really work without going to the java level.
Time to head over to undocumentedmatlab.com or else to change your interface.
(Personally I'd probably just toss a uipanel around the part to be scrolled, make sure that clipping is turned on in the uipanel, and then to change the scrolling, set() the Position of the object within the uipanel.)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by