|
您现在的位置:立华软件园->源码中心->Delphi代码->系统控制 |
|
|
在屏幕上显示一个字母或数字键盘,从TPanel中导出
|
| 发表日期:2003-10-10 | 文件大小:9725 下载次数:1898 |
|
源代码说明:
TKeyboard displays an alphanumeric or numeric keyboard on the screen. TKeyboard is derived from TPanel. Shift and Caps lock: The behavior of the shift key is slightly different than on real keyboards. Pressing shift once puts TKeyboard in shift mode and TKeyboard displays the second function of the keys. After pressing one key TKeyboard falls back in normal mode. Caps lock works just as it does in a real keyboard. The CharCase property controls the case of the returned characters. On ecUpper all characters are converted to uppercase, on ecLower all characters are converted to lowercase, on ecNormal characters are in lowercase when not in shift or caps mode. If in shift or caps mode all characters are in uppercase. Through the LinkedControl property TKeyboard can be linked to any descendant of TWinControl. By linking a control to TKeyboard, keys pressed on TKeyboard are passed to the linked control. This is especially usefull for TEdit, TMemo, TRichtText and TComboBox (and the corresponding ...DB.. controls). TWinControl is used as LinkedControl class because its the first common anchestor for all the controls above. The keyboard layout of TKeyboard reflects a standard US keyboard. The layout can be changed by changing the ANLRow constants below.
立即下载
|
|
|
【我来说两句】
【发送给朋友】
【加入收藏】
【返加顶部】
【打印本页】
【关闭窗口】
|
|
在 中搜索 在屏幕上显示一个字母或数字键盘,从TPanel中导出
|
|
|