604
社区成员
发帖
与我相关
我的任务
分享
//Form1
void __fastcall TForm1::Button1Click(TObject *Sender)
{
this->Hide();
Form2->Show();
}
//Form2
void __fastcall TForm2::RadioButton2Click(TObject *Sender)
{
Form2 -> RadioButton1 -> Checked = true;
}
//------------------------------------------------------------
void __fastcall TForm2::RadioButton2MouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
this->Hide();
Form1->Show();
}
//--------------------------------------------------------------
void __fastcall TForm2::FormClose(TObject *Sender, TCloseAction &Action)
{
Form1->Close();
}
//From1
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Form2->Visible = true;
Form1->Visible = false;
}
//From2
//--------------------------------------------------------
void __fastcall TForm2::RadioButton2Click(TObject *Sender)
{
Form2 -> RadioButton1 -> Checked = true;
}
//----------------------------------------------------------
void __fastcall TForm2::RadioButton2MouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
Form1->Visible = true;
Form2->Visible = false;
}