//---------------------------------------------------------------------------- #ifndef ComboInputH #define ComboInputH //---------------------------------------------------------------------------- #include #include #include #include #include #include #include #include #include #include //---------------------------------------------------------------------------- #include //---------------------------------------------------------------------------- class TComboInputDialog : public TForm { __published: TButton * OKButton; TButton * CancelButton; TComboBox * InputCombo; TLabel *InputLabel; TButton *HelpButton; void __fastcall InputComboChange(TObject * Sender); void __fastcall FormShow(TObject *Sender); void __fastcall HelpButtonClick(TObject *Sender); public: virtual __fastcall TComboInputDialog(TComponent * AOwner); __property TStrings * Items = { read=GetItems, write=SetItems }; __property AnsiString Prompt = { read=GetPrompt, write=SetPrompt }; __property AnsiString Text = { read=GetText, write=SetText }; __property bool AllowEmpty = { read=FAllowEmpty, write=FAllowEmpty }; private: bool FAllowEmpty; void __fastcall UpdateControls(); void __fastcall SetText(AnsiString value); AnsiString __fastcall GetText(); void __fastcall SetPrompt(AnsiString value); AnsiString __fastcall GetPrompt(); void __fastcall SetItems(TStrings * value); TStrings * __fastcall GetItems(); }; //---------------------------------------------------------------------------- #endif