//--------------------------------------------------------------------------- #include #pragma hdrstop #include "Unit3.h" #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm3 *Form3; //--------------------------------------------------------------------------- __fastcall TForm3::TForm3(TComponent* Owner) : TForm(Owner) { Edit1->Text = Form1->max; } //--------------------------------------------------------------------------- void __fastcall TForm3::Button1Click(TObject *Sender) { Close(); } //--------------------------------------------------------------------------- void __fastcall TForm3::Button2Click(TObject *Sender) { Form1->max = Edit1->Text.ToInt(); Form1->ScrollBar1->Max = (Edit1->Text.ToInt() - 1); Close(); } //---------------------------------------------------------------------------