mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
a84fb76883
MenuGadets(.h/.cpp) separated into multiple files for each gadget!
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. */ |