mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 22:02:58 -06:00
14 lines
359 B
Text
14 lines
359 B
Text
#include "CtrlPropCommon.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
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)
|
|
|
|
END_UPP_NAMESPACE
|