Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- #include "Unit1.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- TForm1 *Form1;
- //---------------------------------------------------------------------------
- __fastcall TForm1::TForm1(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button1Click(TObject *Sender)
- {
- Button1 -> Visible = false;
- Button2 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button2Click(TObject *Sender)
- {
- Button2 -> Visible = false;
- Button3 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button3Click(TObject *Sender)
- {
- Button3 -> Visible = false;
- Label1 -> Visible = true;
- RadioButton1 -> Visible = true;
- RadioButton2 -> Visible = true;
- RadioButton3 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::RadioButton1Click(TObject *Sender)
- {
- Label1 -> Visible = false;
- RadioButton1 -> Visible = false;
- RadioButton2 -> Visible = false;
- RadioButton3 -> Visible = false;
- Button4 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::RadioButton2Click(TObject *Sender)
- {
- Label1 -> Visible = false;
- RadioButton1 -> Visible = false;
- RadioButton2 -> Visible = false;
- RadioButton3 -> Visible = false;
- Button4 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::RadioButton3Click(TObject *Sender)
- {
- Label1 -> Visible = false;
- RadioButton1 -> Visible = false;
- RadioButton2 -> Visible = false;
- RadioButton3 -> Visible = false;
- Button4 -> Visible = false;
- Button5 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button4Click(TObject *Sender)
- {
- Button4 -> Visible = false;
- Button1 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button5Click(TObject *Sender)
- {
- Button5 -> Visible = false;
- Label2 -> Visible = true;
- RadioButton4 -> Visible = true;
- RadioButton5 -> Visible = true;
- RadioButton6 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::RadioButton4Click(TObject *Sender)
- {
- Label2 -> Visible = false;
- RadioButton4 -> Visible = false;
- RadioButton5 -> Visible = false;
- RadioButton6 -> Visible = false;
- Button4 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::RadioButton5Click(TObject *Sender)
- {
- Label2 -> Visible = false;
- RadioButton4 -> Visible = false;
- RadioButton5 -> Visible = false;
- RadioButton6 -> Visible = false;
- Button4 -> Visible = false;
- Button6 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::RadioButton6Click(TObject *Sender)
- {
- Label2 -> Visible = false;
- RadioButton4 -> Visible = false;
- RadioButton5 -> Visible = false;
- RadioButton6 -> Visible = false;
- Button4 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button6Click(TObject *Sender)
- {
- Button6 -> Visible = false;
- Button7 -> Visible = true;
- Button8 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button7Click(TObject *Sender)
- {
- Button7 -> Visible = false;
- Button8 -> Visible = false;
- Button1 -> Visible = true;
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::Button8Click(TObject *Sender)
- {
- Application->Terminate();
- }
- //---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement