ultimatepp/bazaar/MapCommon/ButtonItemEvents.cpp
Sc0rch 9959d8888c MapRender: First release (FormEditorCommon, FormEditorProperties, Map, MapBG, MapCommon, MapEditor, MapRenderTest.
git-svn-id: svn://ultimatepp.org/upp/trunk@4180 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-11-18 06:28:11 +00:00

18 lines
338 B
C++

#include "ButtonItem.h"
#include "IMapRender.h"
void ButtonItem::StatePerformed(dword state, const String& param)
{
}
bool ButtonItem::ProcessLeftDown(Point p, dword keyflags)
{
if (Contains(p))
{
if (GetParent() && GetParent()->IsState(STATE_SELECTED))
PromptOK("Getted!");
return true;
}
return false;
}