From: Peng Swee Yap on 31 Jan 2010 17:08 i'm having some trouble. by using GUIDE i did created a 'edit text' bar and a 'push button'. User insert some data in the 'edit text' bar and continue by clicking the 'push button'. Once the 'push button' has been pressed, a popup message box (msgbox) will display the 'edit text''s value. Can some one guide me? % This is the 'edit text' bar % Get value from first name function fname_Callback(hObject, eventdata, handles) first=get(hObject,'String'); % This is the 'push button' function push_Callback(hObject, eventdata, handles) Thank.
From: Steven Lord on 31 Jan 2010 21:35 "Peng Swee Yap" <impengswee(a)gmail.com> wrote in message news:hk4v02$m42$1(a)fred.mathworks.com... > i'm having some trouble. by using GUIDE i did created a 'edit text' bar > and a 'push button'. User insert some data in the 'edit text' bar and > continue by clicking the 'push button'. Once the 'push button' has been > pressed, a popup message box (msgbox) will display the 'edit text''s > value. Can some one guide me? You need to GET the edit text box's String property _in the callback of the pushbutton_. For that, you will need the handle of the edit box inside that callback. If you're not sure how to do that, read this section of the documentation: http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f5-998352.html -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: how to modify and display image in web by matlab Next: PID Contorler |