Hi see this example http://www.mathworks.com/access/helpdesk/help/techdoc/ index.html?/access/helpdesk/help/techdoc/creating_guis/f5- 1002439.html&http://www.mathworks.com/cgi-bin/texis/ webinator/ search/?db=MSS&prox=page&rorder=750&rprox=750&rdfreq=500&rwfreq=500&rlead=250&sufs=0&order=r&is_summary_on=1&ResultCount=10&query=if+%28hObject+%3D%3D+handles.english%29++++++set%28handles.text4%2C+%27String%27%2C+%27lb%2Fcu.in%27%29%3B++++++set%28handles.text5%2C+%27String%27%2C+%27cu.in%27%29%3B++++++set%28handles.text6%2C+%27String%27%2C+%27lb%27%29%3B&submitButtonName=Search
"H H" <email@example.com> wrote in message <firstname.lastname@example.org>... > "Bruno Luong" <email@example.com> wrote in message > <firstname.lastname@example.org>... > > "H H" <email@example.com> wrote in message > > <firstname.lastname@example.org>... > > > I looked this up and I am not sure how I can use it. Can you > > > show me the example with my code? > > > > > > Thanks. > > > > > > > In the callback of a GUI such as > > function browseBut_Callback(hObject, eventdata, handles) > > > > the thrid argument "handles" is a structures that contains > > handles of objects in your GUI. Often time the main figure is > > handles.figure1. If you have an axes in the GUI, you can > > access to its handle through the structure "handles". > > > > Get there the handles of your figure and axis, do not use > > gcf and global variable. > > > > Note: You can rename handle of your objects from GUIDE by > > editing their properties 'Tag'. > > > > Bruno > > Bruno, > > Sorry for the trouble but I am still confuse. > > Can past a sample of code how to resolve that problem? > Thanks a lot.