uicontrol(table): the ui.listboxtop property shall be supported to scroll long tables
Reported by Samuel GOUGEON (@sgougeon)
Example:
clf, f = gcf(); as = f.axes_size;
tab = string(rand(10,3))
ut = uicontrol("style","table",..
"string",tab,..
"position",[5 as(2)-110 300 100]);
ut.litboxtop
// Scroll the table
ut.litboxtop
// Trying to target and focus to a line:
ut.listboxtop = 6 // The table is not scrolled
// --------
This missing or misworking feature is needed. It would allows
- in setting mode : to target a line (or a group of following lines, let's
say a category) to focus on it for updating its values. This would be
a useful improvement.
- in reading+setting mode : for instance to synchronize scrolling of 2 tables :
Put another table just below the first one. Its items (1st column)
are the same as for the first table. Its parameters (1st line) continue
the list of parameters of the 1st table, let's say as another category
of parameters to be viewed in the same time than the first category
in the first table.
After or when scrolling the first table and using either a callback or an
event handler, it would be possible to copy the Listboxtop value of the
table #1 to the Listboxtop value of table #2, hence synchronizing both.