place uitable in a GUI by code ?

1 visualización (últimos 30 días)
Sukuchha
Sukuchha el 3 de En. de 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 ?

Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 3 de En. de 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

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by