www.pudn.com > CommSettings.rar > UnitOptions.h


//--------------------------------------------------------------------------- 
 
#ifndef UnitOptionsH 
#define UnitOptionsH 
//--------------------------------------------------------------------------- 
#include  
#include  
#include  
#include  
#include  
#include  
#include  
//--------------------------------------------------------------------------- 
class TFormOptions : public TForm 
{ 
__published:	// IDE-managed Components 
    TGroupBox *gbLang; 
    TRadioButton *rbLanAuto; 
    TRadioButton *rbLanEnu; 
    TRadioButton *rbLanChs; 
    TRadioButton *rbLanCht; 
    TGroupBox *gbFontSize; 
    TRadioButton *rbFsAuto; 
    TRadioButton *rbFsSmall; 
    TRadioButton *rbFsMedium; 
    TRadioButton *rbFsLarge; 
    TBitBtn *BnOK; 
    TBitBtn *BnCancel; 
    TImage *ImageLangAuto; 
    TImage *ImageLangEnglish; 
    TImage *ImageLangChs; 
    TImage *ImageLangCht; 
    void __fastcall BnCancelClick(TObject *Sender); 
    void __fastcall BnOKClick(TObject *Sender); 
    void __fastcall ImageLangAutoMouseDown(TObject *Sender, 
          TMouseButton Button, TShiftState Shift, int X, int Y); 
    void __fastcall ImageLangEnglishMouseDown(TObject *Sender, 
          TMouseButton Button, TShiftState Shift, int X, int Y); 
    void __fastcall ImageLangChsMouseDown(TObject *Sender, 
          TMouseButton Button, TShiftState Shift, int X, int Y); 
    void __fastcall ImageLangChtMouseDown(TObject *Sender, 
          TMouseButton Button, TShiftState Shift, int X, int Y); 
public:		// User declarations 
    __fastcall TFormOptions(TComponent* Owner); 
private: 
    class TMsgStrings 
     { 
       public: 
         __property AnsiString Str_Caption     = { read = fGetMsg, index =  0 }; //"选项" 
         __property AnsiString Str_Language    = { read = fGetMsg, index =  1 }; //"语言" 
         __property AnsiString Str_FontSize    = { read = fGetMsg, index =  2 }; //"字体" 
         __property AnsiString Str_EditStatus  = { read = fGetMsg, index =  3 }; //"编辑" 
         __property AnsiString Str_PressEnter  = { read = fGetMsg, index =  4 }; //"回车" 
         __property AnsiString Str_Auto        = { read = fGetMsg, index =  5 }; //"自动" 
         __property AnsiString Str_English     = { read = fGetMsg, index =  6 }; //"英语" 
         __property AnsiString Str_SimpChinese = { read = fGetMsg, index =  7 }; //"简体中文" 
         __property AnsiString Str_TridChinese = { read = fGetMsg, index =  8 }; //"繁体中文" 
         __property AnsiString Str_Small       = { read = fGetMsg, index =  9 }; //"小" 
         __property AnsiString Str_Medium      = { read = fGetMsg, index = 10 }; //"中" 
         __property AnsiString Str_Large       = { read = fGetMsg, index = 11 }; //"大" 
         __property AnsiString Str_OK          = { read = fGetMsg, index = 12 }; //"确定" 
         __property AnsiString Str_Cancel      = { read = fGetMsg, index = 13 }; //"取消" 
 
         __fastcall TMsgStrings(); 
       private: 
         AnsiString __fastcall fGetMsg(int mt); 
 
         char **_Msg; 
         static char *_Msg_Chs[]; 
         static char *_Msg_Cht[]; 
         static char *_Msg_Enu[]; 
     }; 
}; 
//--------------------------------------------------------------------------- 
extern PACKAGE TFormOptions *FormOptions; 
//--------------------------------------------------------------------------- 
#endif