use listbox to search data inside a uitable
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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.
(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.)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!