Uitables and widgets question
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have 2 questions.
1) Can checkboxes be implemented into the UItable when building a gui.
2) If so, can rows and checkboxes be added dynamically to the UItable.
0 Kommentare
Akzeptierte Antwort
Tom
am 25 Jun. 2013
Bearbeitet: Tom
am 25 Jun. 2013
1) Yes
2) Yes
you can change the column format of the table at any point, using the ColumnFormat field of the uitable:
T = uitable('Data',{'a',false;'b' true},...
'ColumnFormat',{[] , 'numeric'},...
'ColumnEditable',[false true]);
pause(1)
set(T,'ColumnFormat',{[],'logical'})
0 Kommentare
Weitere Antworten (4)
James Hendren
am 25 Jun. 2013
14 Kommentare
Tom
am 25 Jun. 2013
To do it in GUIDE, you right click on the table, select Table Property Editor, then in the Columns tab there is an option to select what data format each column will take: make it 'logical'.
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!