remove the white space on table

how to remove the white space next to the table drawn in the app designer?
app.UITable.Data=T;
app.UITable.ColumnName=["#";"Strategy Name";"First Date";"Last Date";"First trade";"Last trade";"NetProfit";"MaxDD";"# trades"];
app.UITable.ColumnWidth={30,400,80,80,80,80,80,80,80};

 採用された回答

Voss
Voss 2023 年 12 月 31 日

0 投票

Adjust the ColumnWidth and/or width (i.e., Position(3)) of the uitable. The sum of the column widths should be about 16 pixels less than the width of the uitable, to allow space for the vertical slider.

7 件のコメント

shamal
shamal 2023 年 12 月 31 日
do you mean that I enlarge the table in the editor using the grid?
Voss
Voss 2023 年 12 月 31 日
You can adjust the table's position that way, yes, or you can do it programmatically in your code.
shamal
shamal 2023 年 12 月 31 日
Well, I didn't understand how to do it via code You could help me
Voss
Voss 2023 年 12 月 31 日
app.UITable.Data=T;
app.UITable.ColumnName=["#";"Strategy Name";"First Date";"Last Date";"First trade";"Last trade";"NetProfit";"MaxDD";"# trades"];
app.UITable.ColumnWidth={30,400,80,80,80,80,80,80,80};
app.UITable.Position(3) = sum([app.UITable.ColumnWidth{:}])+16;
shamal
shamal 2024 年 1 月 1 日
i receive this error:
Warning: Unable to set 'Position', 'InnerPosition', or 'OuterPosition' for components in
'GridLayout'.
Voss
Voss 2024 年 1 月 1 日
I guess you will have to adjust the GridLayout or remove it. I don't know, I never use GridLayout.
shamal
shamal 2024 年 1 月 1 日
ok then I have to edit it manually thanks

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2023 年 12 月 30 日

コメント済み:

2024 年 1 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by