在C++Builder 6中指令Button1Click(Sender);是什么意思
比如如下代码多处用到:void__fastcallTForm1::BD_AddressKeyPress(TObject*Sender,char&Key){if(Key==...
比如如下代码多处用到:
void __fastcall TForm1::BD_AddressKeyPress(TObject *Sender, char &Key)
{
if(Key == '\r')
{
if(this->Button1->Enabled)
Button1Click(Sender);
}
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Edit9KeyPress(TObject *Sender, char &Key)
{
if(Key == '\r')
{
if(this->Button2->Enabled)
Button2Click(Sender);
}
}
请问Button1Click(Sender);Button2Click(Sender);在这个函数中是起什么意思或作用? 展开
void __fastcall TForm1::BD_AddressKeyPress(TObject *Sender, char &Key)
{
if(Key == '\r')
{
if(this->Button1->Enabled)
Button1Click(Sender);
}
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Edit9KeyPress(TObject *Sender, char &Key)
{
if(Key == '\r')
{
if(this->Button2->Enabled)
Button2Click(Sender);
}
}
请问Button1Click(Sender);Button2Click(Sender);在这个函数中是起什么意思或作用? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询