Wanted features for UITABLE and UITREE

Jan Simon asked on 20 Dec 2011
Latest activity: Answer by Jan Simon on 1 Mar 2012

Currently the power of uitable and uitree is very limited.

Which features are missing to improve the usability of your GUIs?

0 comments

Tags

Products

    3 answers

    Walter Roberson answered on 20 Dec 2011

    uicontrol('Style','edit') and uitable cells should support a "PICTURE" input validation field; the field could be a string containing a % format, or a string containing a regex, or the handle of a routine. The validation would be "live", as characters are typed, with user notification (e.g. a beep, with provision made for visual notification for the deaf) as soon as they enter the wrong character.

    drag-and-drop. Extended cut-and-paste (e.g., blocks of table)

    Ability to find out which uitable cells are visible, and ability to set the scrollbars so that a particular part is visible.

    Embedded 'vi' editor mode.

    0 comments

    Jette answered on 1 Mar 2012

    I'd like to have an additional Property 'RowEditable' similar to the property 'ColumnEditable'. Both properties should work at the same time such that the user is only allowed to change certain submatrices of the entire table.

    Other things I'd like to have:

    • selection of entire rows and columns by clicking on the header
    • the possibility to change the background color of single cells
    • a context menu for each cell or at least for each column

    Concerning uitree: This function is not even a supported function. It would be extremely nice to have an "official" uitree function in MATLAB.

    1 comment

    Jan Simon on 5 Mar 2012

    Apart from beeing "extremly nice" to have a powerful and supported uitree, it would allow to create GUIs with a modern and efficient structure. I see tree objects since the TOS of the Atari ST: 1985! Now, after 27 years it is the right time to support this interface object in Matlab also.

    Jan Simon answered on 1 Mar 2012

    Some further ideas:

    • Colored cells. Using the HMTL method to define a color looks ugly, when the contents of a cell is edited.
    • Possibility to sort rows and columns.
    • Context menus for elements of uitree and uitable.
    • Scrolling of a specific node/row/column to the visible area/top line.
    • Get the scroll position.
    • Checkboxes in uitree nodes.
    • Export of the column width such that it can be stored for re-opening a GUI.
    • Setting the contents of individual cells without changing the selection status. E.g. when the HTML-method is used to set the appearance of a cell, the HTML tags could be removed in the pre-selection callback. But therefore the complete data must be clean and updated, which clears the selection status automatically.
    • Set the selection status programmatically.
    • Select a row or column.
    • Change the line width and color of the separator lines.
    • When I look in the documentation, I even do not find uitree immediately: Techdoc: user interface objects. So at least the current versions should be documented.

    All these features are available in the Java-level, but Yair's findjobj needs more than a second to locate the handle and there is no guarantee, that it works in future versions also. See Undocumented: uitree. It would be much smarter if these important objects can be accessed from Matlab exhaustively and with documentation as well as support.

    0 comments

    Contact us at files@mathworks.com