-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHistoryComboBox.h
28 lines (27 loc) · 978 Bytes
/
HistoryComboBox.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
//---------------------------------------------------------------------------
#ifndef HistoryComboBoxH
#define HistoryComboBoxH
//---------------------------------------------------------------------------
#include <stdlib.h>
#include <SysUtils.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <Forms.hpp>
#include <StdCtrls.hpp>
//---------------------------------------------------------------------------
class PACKAGE THistoryComboBox : public TComboBox
{
private:
int FHistorySize;
void __fastcall UpdateHistory(char Key); // Centralised action...
protected:
int __fastcall GetHistorySize(); // read method
void __fastcall SetHistorySize(int ACount);
void __fastcall KeyPress(char &Key);
public:
__fastcall THistoryComboBox(TComponent* Owner);
__published:
__property int HistorySize = {read=GetHistorySize, write=SetHistorySize, default = 8};
};
//---------------------------------------------------------------------------
#endif