Hi everyone!!! I have edit text box in GUI and I want to hiding all words as password (like ***) so how to do it??
Thanks

3 Kommentare

orlando morales andrade
orlando morales andrade am 3 Mär. 2017
The easiest way is to set the text font(change arial for Webdings) to something like symbols then you get some squares in the edit field.
geo marian
geo marian am 9 Sep. 2017
it works thanks!!
mokhtarmatlab
mokhtarmatlab am 23 Apr. 2020
thanks

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Stephen23
Stephen23 am 14 Dez. 2015

1 Stimme

3 Kommentare

lakshmana prabu
lakshmana prabu am 4 Jan. 2016
Bearbeitet: Walter Roberson am 3 Mär. 2017
Stephen Codeldick ur link superb ... but i need a user name and pwd for GUI matlab ... not login in dialoug box
a=get(handles.edit1,'string');
b='123456';
l=strcmp(a,b);
if l==1
msgbox('rightpwd');
set(handles.edit1,'string','');
else
msgbox('wrong pwd');
set(handles.edit1,'string','');
end
this is my code k but in this i wanna to add username... i set password but its visible but i need to show invisible so try to help me Stephen Cobeldick
Jan
Jan am 3 Mär. 2017
@lakshmana prabu: But the links contain code, which solves exactly your problem. Please try them. You can easily modify them and adjust them to your needs.
AJEET KUMAR
AJEET KUMAR am 4 Feb. 2020
Hi,
How can I put password and it should show "******" for each character in the box?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown 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!

Translated by