CreateFcn+Callback+KeyPressFcn
% --- Executes on key press with focus on password and none of its controls.
function password_KeyPressFcn(hObject, eventdata, handles) % hObject handle to password (see GCBO) % eventdata structure with the following fields (see UICONTROL) % Key: name of the key that was pressed, in lower case % Character: character interpretation of the key(s) that was pressed % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed % handles structure with handles and user data (see GUIDATA) % - - - - - -执行与关注密码按键,没有它的控制。 函数password_KeyPressFcn(hObject eventdata,处理) % hObject处理密码(见GCBO) % eventdata结构以下字段(参见UICONTROL) %的关键:名称键被按下,在较低的情况下 %字符:字符解释的关键(s) %修饰符:名称(s)(s)(即修饰符的关键。、控制、转移) %处理结构处理和用户数据(见GUIDATA) |