ultimatepp/bazaar/CtrlProp/ButtonOption.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
395 B
Text

#include "CtrlPropCommon.h"
#include <CtrlLib/CtrlLib.h>
bool PropSetLabel(const Value& v, ButtonOption& o) { if(!IsString(v)) return false; o.SetLabel(v); return true; }
bool PropGetLabel(Value& v, const ButtonOption& o) { v = o.GetLabel(); return true; }
PROPERTIES(ButtonOption, Ctrl)
PROPERTY("label", PropSetLabel, PropGetLabel)
END_PROPERTIES
PROPS(Ctrl, ButtonOption, Ctrl)