mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
51 lines
773 B
C++
51 lines
773 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
auto Print = [&](Ctrl& h) {
|
|
DLOG("========================");
|
|
DDUMP(h.GetLayoutId());
|
|
DDUMP(h.GetTip());
|
|
DDUMP(h.GetDescription());
|
|
DDUMP(h.GetHelpLine());
|
|
};
|
|
|
|
{
|
|
Ctrl h;
|
|
h.LayoutIdLiteral("just some literal");
|
|
Print(h);
|
|
}
|
|
|
|
{
|
|
Ctrl h;
|
|
h.LayoutId(String("just some text"));
|
|
Print(h);
|
|
}
|
|
|
|
{
|
|
Ctrl h;
|
|
h.LayoutIdLiteral("just some literal");
|
|
h.HelpLine("some helpline");
|
|
Print(h);
|
|
}
|
|
|
|
{
|
|
Ctrl h;
|
|
h.LayoutId(String("just some text"));
|
|
h.HelpLine("some helpline");
|
|
Print(h);
|
|
}
|
|
|
|
{
|
|
Ctrl h;
|
|
h.LayoutIdLiteral("just some literal");
|
|
h.Tip("this is tip");
|
|
h.HelpLine("some helpline");
|
|
h.Description("this is description");
|
|
Print(h);
|
|
}
|
|
|
|
CheckLogEtalon();
|
|
}
|