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

orlando morales andrade
orlando morales andrade 2017년 3월 3일
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 2017년 9월 9일
it works thanks!!
mokhtarmatlab
mokhtarmatlab 2020년 4월 23일
thanks

댓글을 달려면 로그인하십시오.

 채택된 답변

Stephen23
Stephen23 2015년 12월 14일

1 개 추천

댓글 수: 3

lakshmana prabu
lakshmana prabu 2016년 1월 4일
편집: Walter Roberson 2017년 3월 3일
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 2017년 3월 3일
@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 2020년 2월 4일
Hi,
How can I put password and it should show "******" for each character in the box?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2015년 12월 14일

댓글:

2020년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by