mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-30 13:45:53 +01:00
28 lines
602 B
C
28 lines
602 B
C
|
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
||
|
|
||
|
#ifndef SE_INCL_MENU_GADGET_EDIT_H
|
||
|
#define SE_INCL_MENU_GADGET_EDIT_H
|
||
|
#ifdef PRAGMA_ONCE
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "MGButton.h"
|
||
|
|
||
|
|
||
|
class CMGEdit : public CMGButton {
|
||
|
public:
|
||
|
INDEX mg_ctMaxStringLen;
|
||
|
CTString *mg_pstrToChange;
|
||
|
CMGEdit(void);
|
||
|
// return TRUE if handled
|
||
|
BOOL OnKeyDown(int iVKey);
|
||
|
BOOL OnChar(MSG msg);
|
||
|
void Clear(void);
|
||
|
void OnActivate(void);
|
||
|
void OnKillFocus(void);
|
||
|
void Render(CDrawPort *pdp);
|
||
|
virtual void OnStringChanged(void);
|
||
|
virtual void OnStringCanceled(void);
|
||
|
};
|
||
|
|
||
|
#endif /* include-once check. */
|