App Designer で、RowNames プロパティに行名を入力しても、実行時、テーブルに行の名前が表示されないのはなぜですか?
6 views (last 30 days)
Show older comments
MathWorks Support Team
on 4 Jun 2020
Answered: MathWorks Support Team
on 4 Jun 2020
App Designer にテーブル(UITable)を配置し、RowNames プロパティに行名を示す文字列を入力しました。
しかし、GUI を起動しても、テーブルには行名が表示されません。
Accepted Answer
MathWorks Support Team
on 4 Jun 2020
テーブル(UITableオブジェクト)の RowNames プロパティの表示は、仕様上、実際にデータ(Data プロパティ)に値がある場合にのみ、表示されます。
例えば、
app.UITable.Data = cell(4,5); % 空のセル配列を Data に追加
のように Data プロパティに値を与えると、行の名前が表示されることを確認できます。
あらかじめ、テーブルの行名を表示させたい場合は、上記のような、空の値を持つセルやテーブル配列をStartupFcn コールバックなどで与える方法をご検討ください。
0 Comments
More Answers (0)
See Also
Categories
Find more on App Designer を使用したアプリ開発 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!