mainfrm.h

来自「最新版 JCL+JVCL控件!非常不错的控件资源。包含了所能用到的大部分功能!」· C头文件 代码 · 共 57 行

H
57
字号
//---------------------------------------------------------------------------

#ifndef MainFrmH
#define MainFrmH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "JvComponent.hpp"
#include "JvErrorIndicator.hpp"
#include "JvValidators.hpp"
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TEdit *edRequired;
        TEdit *edRequired10Chars;
        TEdit *edRegExpr;
        TEdit *edRange0to100;
        TUpDown *udRange0to100;
        TButton *btnCheck;
        TButton *btnProviderCheck;
        TRichEdit *reResults;
        TButton *btnValSum;
        TJvValidators *JvValidators1;
        TJvRequiredFieldValidator *JvRequiredFieldValidator1;
        TJvCustomValidator *JvCustomValidator1;
        TJvRegularExpressionValidator *JvRegularExpressionValidator1;
        TJvRangeValidator *JvRangeValidator1;
        TJvErrorIndicator *JvErrorIndicator1;
        TJvValidationSummary *JvValidationSummary1;
        void __fastcall reResultsEnter(TObject *Sender);
        void __fastcall JvValidators1ValidateFailed(TObject *Sender,
                                 TJvBaseValidator *BaseValidator, bool &Continue);
        void __fastcall JvValidationSummary1Change(TObject *Sender);
        void __fastcall btnProviderCheckClick(TObject *Sender);
        void __fastcall btnValSumClick(TObject *Sender);
        void __fastcall btnCheckClick(TObject *Sender);
        void __fastcall JvCustomValidator1Validate(TObject *Sender,
          Variant &ValueToValidate, bool &Valid);
private:
        void __fastcall ProviderErrorValidateFailed(TObject * Sender, TJvBaseValidator * BaseValidator, bool & Continue);	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?