www.pudn.com > HDTV_play_flash.rar > chipset.cpp
//--------------------------------------------------------------------------- #include#pragma hdrstop #include "chipset.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm4 *Form4; //--------------------------------------------------------------------------- __fastcall TForm4::TForm4(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm4::Edit1KeyPress(TObject *Sender, char &Key) { if(Key>='0' && Key <='9') return; if(Key>='a' && Key <='f') return; if(Key>='A' && Key <='F') return; if(Key==' ') return; if(Key!=VK_RIGHT && Key!=VK_LEFT && Key !=VK_HOME && Key !=VK_END && Key !=VK_BACK) Key=0; } //---------------------------------------------------------------------------