mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-22 22:02:34 -06:00
11 lines
351 B
C++
11 lines
351 B
C++
#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)
|