摘要:
首先有两个自定的转换函数: function myStrToHex(s:string):string; //字串转16进制 var TmpStr:string; i:integer; begin TmpStr:=''; for i:=1 to Length(s)do TmpStr:=TmpStr+IntToHex(ord(s[i]),2); Resu...
阅读全文
posted @ 2012-12-05 21:50
许小东
阅读(449)
推荐(0)
编辑
摘要:
使用消息机制: 下一个焦点: SendMessage(Form1.Handle,WM_NEXTDLGCTL,0,0); 上一个焦点: SendMessage(Form1.Handle,WM_NEXTDLGCTL,1,0);
阅读全文
posted @ 2012-12-05 12:00
许小东
阅读(179)
推荐(0)
编辑
摘要:
procedure TForm1.Edit1KeyPress (Sender: TObject; var Key: Char) ; begin If Key = #13 Then Begin If HiWord(GetKeyState(VK_SHIFT)) <> 0 then SelectNext(Sender as TWinControl,False...
阅读全文
posted @ 2012-12-05 11:55
许小东
阅读(181)
推荐(0)
编辑
摘要:
procedure TForm1.Edit1Change(Sender: TObject); begin if Sender is TCustomEdit then with Sender as TCustomEdit do if edit1.MaxLength = GetTextLen then self.SelectNext(TCusto...
阅读全文
posted @ 2012-12-05 11:49
许小东
阅读(102)
推荐(0)
编辑