blob: 8d2291f876dc4be4020247a3e2c2a3dde902cbcb (
plain)
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
34
35
|
#ifndef __TEXT_FIELD_H__
# define __TEXT_FIELD_H__
#include "Field.h"
class TextField : public Field
{
public:
TextField(Dialog *dlg, const char *name);
virtual ~TextField();
virtual FieldType getType() const;
virtual const TCHAR * getText() const;
virtual void setText(const TCHAR *text);
virtual HFONT getFont() const;
virtual void setFont(HFONT hFont);
virtual COLORREF getFontColor() const;
virtual void setFontColor(COLORREF color);
virtual FieldState * createState(DialogState *dialogState);
private:
std::tstring text;
HFONT hFont;
COLORREF fontColor;
};
#endif // __TEXT_FIELD_H__
|