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};

 Risposta accettata

Voss
Voss il 31 Dic 2023

0 voti

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 Commenti

shamal
shamal il 31 Dic 2023
do you mean that I enlarge the table in the editor using the grid?
Voss
Voss il 31 Dic 2023
You can adjust the table's position that way, yes, or you can do it programmatically in your code.
shamal
shamal il 31 Dic 2023
Well, I didn't understand how to do it via code You could help me
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;
i receive this error:
Warning: Unable to set 'Position', 'InnerPosition', or 'OuterPosition' for components in
'GridLayout'.
Voss
Voss il 1 Gen 2024
I guess you will have to adjust the GridLayout or remove it. I don't know, I never use GridLayout.
ok then I have to edit it manually thanks

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange

Richiesto:

il 30 Dic 2023

Commentato:

il 1 Gen 2024

Community Treasure Hunt

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

Start Hunting!

Translated by