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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#include <skygi/skygi.h>
#include "widgettextfield.h"
CTextfield::CTextfield() {
this->hWnd = NULL;
}
HRESULT CTextfield::Create(HANDLE parent, char * name, int x, int y, int w, int h, int style) {
this->hWnd = GI_WidgetTextfieldCreate(parent, name, x, y, w, h, style);
if (this->hWnd) {
return S_OK;
}
return E_HANDLE;
}
HRESULT CTextfield::Add(char * line) {
return GI_WidgetTextfieldAdd(this->hWnd, line);
}
HRESULT CTextfield::AddFile(char * filename) {
return GI_WidgetTextfieldAddFile(this->hWnd, filename);
}
HRESULT CTextfield::AddLine(char * line) {
return GI_WidgetTextfieldAddLine(this->hWnd, line);
}
HRESULT CTextfield::DeleteText() {
return GI_WidgetTextfieldDeleteText(this->hWnd);
}
HRESULT CTextfield::Redraw() {
return GI_WidgetTextfieldRedraw(this->hWnd);
}
HRESULT CTextfield::PasswordMode(bool passwordmode) {
return GI_WidgetTextfieldPasswordMode(this->hWnd, passwordmode);
}
HRESULT CTextfield::ReadonlyMode(bool readonly) {
return GI_WidgetTextfieldReadonlyMode(this->hWnd, readonly);
}
HRESULT CTextfield::SingleLine(bool singleline) {
return GI_WidgetTextfieldSetSingleLine(this->hWnd, singleline);
}
/*
HRESULT CTextfield::Undo() {
return GI_WidgetTextfieldUndo(this->hWnd);
}
HRESULT CTextfield::UndoAvailable() {
return GI_WidgetTextfieldUndoAvailable(this->hWnd);
}
HRESULT CTextfield::UndoReset() {
return GI_WidgetTextfieldUndoReset(this->hWnd);
}
*/
|