//--------------------------------------------------------------------------- #ifndef VerifyCodeFormUnitH #define VerifyCodeFormUnitH //--------------------------------------------------------------------------- #include #include #include #include #include "PNGButton.hpp" #include #include #include #include #include #include #include "TransparentEditUnit.h" //--------------------------------------------------------------------------- class TVerifyCodeForm : public TForm { __published: // IDE-managed Components TPNGButton *m_btnOk; TImage *m_imgBk; TPNGButton *m_btnClose; TLabel *m_lblTitle; TImage *m_imgCode; Vcl::Stdctrls::TEdit *m_editCode; TRESTClient *RESTClient; TRESTRequest *RESTRequest; TRESTResponse *RESTResponse; void __fastcall FormCreate(TObject *Sender); void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift); void __fastcall CodeImgClick(TObject *Sender); void __fastcall OkClick(TObject *Sender); private: // User declarations String m_sKey; String m_sCode; void __fastcall RefreshCode(); void __fastcall WMNCHitTest(TWMNCHitTest &Msg); BEGIN_MESSAGE_MAP MESSAGE_HANDLER(WM_NCHITTEST, TWMNCHitTest, WMNCHitTest) END_MESSAGE_MAP(TForm) public: // User declarations String __fastcall GetCode(){return m_sCode;}; String __fastcall GetKey(){return m_sKey;}; __fastcall TVerifyCodeForm(TComponent* Owner, String baseUrl); }; //--------------------------------------------------------------------------- extern PACKAGE TVerifyCodeForm *VerifyCodeForm; //--------------------------------------------------------------------------- #endif