place uitable in a GUI by code ?

1 visualizzazione (ultimi 30 giorni)
Sukuchha
Sukuchha il 3 Gen 2012
Dear all,
I have a GUI, the results of which i want to display in a uitable. The size of my table depends on parameters taken from GUI.
I want to put a uitable in the GUI not at the very beginning in my GUI because, that would make my GUI undesirable large in size ( even hiding uitable at the beginning doesnot help. So what i thought, if it possible to put a uitable in the GUI if after code in a certain pushbutton is finished ?
If yes, How would i control the position of uitable ?

Risposta accettata

Titus Edelhofer
Titus Edelhofer il 3 Gen 2012
Hi,
yes, you might do in the callback of your pushbutton something like
handles.mytable = uitable('units', 'normalized', ...
'position', [0.1 0.1 0.8 0.3], 'Data', rand(2,8));
guidata(hObject, handles)
Here the position is given relative to the entire GUI. You might as well use pixels for the position or characters.
Titus

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox 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!

Translated by