set uitable property everytime?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Do I have to set uitable properties everytime I call function?(ColumnWidth...ColumnName)..
function HistoricalTabButtonDown(app, event)
app.DateSearchDropDown_3.Items=string(app.Eq.MinCap_posSiz.DateRicalcolo(end));
app.UITable_Historical_3.Data=Table_Historical_Struct(app.Eq,app.Sis,app.DateSearchDropDown_3.Value);
app.UITable_Historical_3.ColumnWidth= {30,300,50,50,50};
app.UITable_Historical_3.ColumnName = {"#","A","B","C","D"};
end
function DateSearchDropDown_3Clicked(app, event)
item = event.InteractionInformation.Item;
if ~isempty(item)
app.UITable_Historical_3.Data=Table_Historical_Struct(app.Eq,app.Sis,app.DateSearchDropDown_3.Value);
app.UITable_Historical_3.ColumnWidth= {30,300,50,50,50};
app.UITable_Historical_3.ColumnName = {"#","A","B","C","D"};
end
end
0 Commenti
Risposta accettata
Rik
il 5 Ago 2023
You only need to set properties if you want to change them, or if you want to ensure they have a specific value.
This is true for all normal Matlab objects with properties.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!