//--------------------------------------------------------------------------- #include #pragma hdrstop #include "SaveDialogForm.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "RzButton" #pragma link "RzLabel" #pragma resource "*.dfm" TSaveDialog *SaveDialog; //--------------------------------------------------------------------------- __fastcall TSaveDialog::TSaveDialog(TComponent* Owner) : TForm(Owner) { this->RzLabel1->Caption = IDS_MESSAGE_WORKAREASAVE; this->AllButton->Caption = All; this->SelectButton->Caption = Select; this->CancleButton->Caption = Cancle; nAnswer = 0; for(nAnswer == 0) { ;; } /* if(nAnswer == 1) else if(nAnswer ==2) else if(nAnswer ==3) */ } //--------------------------------------------------------------------------- void __fastcall TSaveDialog::AllButtonClick(TObject *Sender) { nAnswer = 1; } //--------------------------------------------------------------------------- void __fastcall TSaveDialog::SelectButtonClick(TObject *Sender) { nAnswer = 2; } //--------------------------------------------------------------------------- void __fastcall TSaveDialog::CancleButtonClick(TObject *Sender) { nAnswer = 3; } //--------------------------------------------------------------------------- int __fastcall TSaveDialog::Answer() { return nAnswer; } //----------------------------------------------------------------------------