Adding a push button to a figure without using GUIDE
Ältere Kommentare anzeigen
Is there a reason why I'm not seeing the pushbutton on the figure? Thanks Jason
hFig=figure('Position',[200 200 1600 600]);
movegui(hFig,'center')
%Add pushbutton to view data
ButtonH=uicontrol('Parent',hFig,'Style','pushbutton','String','View Data','Position',[0.0 0.5 0.4 0.2],'Units','normalized','Visible','on');
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 5 Dez. 2014
0 Stimmen
If you really want to take on the burdensome task of building a complete GUI from scratch using bunches of uicontrol() calls, see Matt Fig's File Exchange http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples
3 Kommentare
Jason
am 5 Dez. 2014
Image Analyst
am 5 Dez. 2014
Nonetheless, there's some good stuff there. It's still worth taking a look at, at least I think so.
Jason
am 5 Dez. 2014
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!