ultimatepp/autotest/CtrlInfoParts/main.cpp
Mirek Fidler e05b8ee4b4 .autotest
2023-01-16 13:59:31 +01:00

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();
}