App Designer で、RowNames プロパティに行名を入​力しても、実行時、テ​ーブルに行の名前が表​示されないのはなぜで​すか?

6 views (last 30 days)
App Designer にテーブル(UITable)を配置し、RowNames プロパティに行名を示す文字列を入力しました。
しかし、GUI を起動しても、テーブルには行名が表示されません。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Jun 2020
テーブル(UITableオブジェクト)の RowNames プロパティの表示は、仕様上、実際にデータ(Data プロパティ)に値がある場合にのみ、表示されます。
例えば、
app.UITable.Data = cell(4,5); % 空のセル配列を Data に追加
のように Data プロパティに値を与えると、行の名前が表示されることを確認できます。
あらかじめ、テーブルの行名を表示させたい場合は、上記のような、空の値を持つセルやテーブル配列をStartupFcn コールバックなどで与える方法をご検討ください。

More Answers (0)

Categories

Find more on App Designer を使用したアプリ開発 in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!