-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFrameReLog.h
33 lines (27 loc) · 984 Bytes
/
FrameReLog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//---------------------------------------------------------------------------
#ifndef FrameReLogH
#define FrameReLogH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TfrmeReLog : public TFrame
{
__published: // IDE-managed Components
TRichEdit *RichEdit1;
private: // User declarations
int maxLogSize_ { 32 * 1024 };
void SetMaxLogSize( int Val );
public: // User declarations
__fastcall TfrmeReLog(TComponent* Owner);
void LogMessage( String Text, TColor Color );
void Clear();
bool IsEmpty() const;
__property int MaxLogSize = { read = maxLogSize_, write = SetMaxLogSize };
};
//---------------------------------------------------------------------------
#endif