ITeye博客

检测大写字母锁定键的状态

tianshui0 · 2008-11-25 15:37 · Delphi · Markdown

var
 state:short ;
begin
    state:=GetKeyState(VK_CAPITAL);
    if(state=1) then
    self.Edit1.ShowHint:=true;
    then ShowMessage('Capslock on')
    else ShowMessage('Capslock off');
end;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。