![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175457/image.png)
self clearing edit box
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Max Müller
le 25 Août 2014
Réponse apportée : Salaheddin Hosseinzadeh
le 25 Août 2014
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
0 commentaires
Réponse acceptée
Salaheddin Hosseinzadeh
le 25 Août 2014
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175457/image.png)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!