www.pudn.com > HDTV_play_flash.rar > serialset.cpp
//--------------------------------------------------------------------------- #include#pragma hdrstop #include "serialset.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm2 *Form2; //--------------------------------------------------------------------------- __fastcall TForm2::TForm2(TComponent* Owner) : TForm(Owner) { ComboBox1->ItemIndex=0; ComboBox2->ItemIndex=3; ComboBox3->ItemIndex=2; ComboBox4->ItemIndex=0; ComboBox5->ItemIndex=0; } //--------------------------------------------------------------------------- void __fastcall TForm2::Edit4KeyPress(TObject *Sender, char &Key) { if(Key>'9' || Key<'0') { if(Key!=VK_RIGHT && Key!=VK_LEFT && Key !=VK_HOME && Key !=VK_END && Key !=VK_BACK) Key=0; } } //---------------------------------------------------------------------------