ultimatepp/bazaar/CtrlProp/Label.icpp
kohait 2af7a2780c bazaar: INITBLOCK issues with MSC optimal, need icpp filed without blitz
git-svn-id: svn://ultimatepp.org/upp/trunk@3314 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-03-29 13:45:37 +00:00

11 lines
351 B
Text

#include "CtrlPropCommon.h"
#include <CtrlLib/CtrlLib.h>
bool PropSetText(const Value& v, Label& o) { o.SetText(AsString(v)); return true; }
bool PropGetText(Value& v, const Label& o) { v = o.GetText(); return true; }
PROPERTIES(Label, StaticText)
PROPERTY("text", PropSetText, PropGetText)
END_PROPERTIES
PROPS(Ctrl, Label, StaticText)