Getting current actual width of a column in a uitable

5 ビュー (過去 30 日間)
Daniel
Daniel 2015 年 2 月 8 日
コメント済み: Daniel 2015 年 2 月 12 日
hi all,
I need to find out the size of each column in an uitable. If I use get:
widths = get(hTable,'Columnwidth');
to get a cell array 'widths' containings the widths of each column in uitable 'hTable', the values that I get are the ones that I used to set the column widths manually during creation of the table. The poblem is that if the user changed that values by manually enlarging one column, apparently I have no way to read the actual widths.
Anybody knows if there is a way to change this behavious?
Daniel Is it

採用された回答

Geoff Hayes
Geoff Hayes 2015 年 2 月 8 日
Daniel - you may want to check Yair Altman's undocumented MATLAB at http://undocumentedmatlab.com/blog/uitable-cell-colors which has some comments and code on how to access the column table widths.
  1 件のコメント
Daniel
Daniel 2015 年 2 月 12 日
Thansk Geoff...
hm, I'm trying to find out this piece of infomation there, thanks!
It's weird that this functionality is not directly provided by uitable itself, looks pretty basic.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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