フィルターのクリア

salam , I have a problem in hide password in GUI can any one to help me my problem( I can write **** in my edit text but when press in backspace show* don't delele ) please help me .

2 ビュー (過去 30 日間)
salam , I have a problem in hide password in GUI can any one to help me my problem( I can write ** in my edit text but when press in backspace show* don't delele ) please help me .

回答 (2 件)

per isakson
per isakson 2013 年 2 月 23 日
Did you search the File Exchange? "password" returns
and more.

Morteza
Morteza 2013 年 2 月 25 日
編集済み: Morteza 2013 年 2 月 25 日
your edit accept string that has the specific length: try this: find your Edit box Tag and place it instead of : 'your edit box Tag'
%.................................................
STR = get(findobj('Tag','your edit box Tag'),'string');
%When you press backspace
STRn = STR(1:end-1);
set(findobj('Tag','your edit box Tag'),'string',STRn);
%Whenever you push the backspace the last character will be eliminated

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by