self clearing edit box

조회 수: 1 (최근 30일)
Max Müller
Max Müller 2014년 8월 25일
답변: Salaheddin Hosseinzadeh 2014년 8월 25일
Hey guys,
I want to create an Edit box that has a default Text Input ('enter Experiment number ') and clears it self by click on the edit box. I tried to set the buttondownfcn without success. Any ideas ?
PS : wish u all a successful week

채택된 답변

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2014년 8월 25일
Hi Max,
How about using MATLAB's default input dialog (inputdlg)?
Even if you make your own, it's absolutely gonna work the same, and it won't have any advantages.
To find how to use it please refer to matlab documentation.
doc inputdlg
I believe this is enough to solve your prob, if not get back to us.
Good Luck!
Here is an example in the documentation.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by