color selector in table cell

4 ビュー (過去 30 日間)
SSOI SS
SSOI SS 2013 年 3 月 19 日
I need some advice about how to integrate a color selector into table's cell. It should works like:
1. click on the cell, a combobox appears for color selection
2. select the color
3. start a callback function directly to change e.g. the line color in figure etc.
Anyone has a idee? I found Yair's Java-based method is perfect for step1&2, but for step3, it's very difficult, since I can't find a exact callback func for this.
Thks.

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 3 月 19 日
If you are referring to uitable() then you cannot insert other controls in one, unless it can be done at the Java level. You can, though, use CellEditCallback or CellSelectionCallback, figure out from the event which cell is being selected, and decide from there what to launch

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by