From d42ffda3beaab9dcee8eb0ec759c5cbc8ce9aa32 Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 29 Dec 2019 17:25:38 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@13791 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/TestChStyle/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/upptst/TestChStyle/main.cpp b/upptst/TestChStyle/main.cpp index 416ede96f..7864e5d79 100644 --- a/upptst/TestChStyle/main.cpp +++ b/upptst/TestChStyle/main.cpp @@ -18,7 +18,12 @@ void Dc(WithDropChoice& dc) TestChStyle::TestChStyle() { AddFrame(menu); - menu.Sub("Something", [=](Bar& bar) { bar.Add("Foo", [] {}); }); + menu.Sub("Something", [=](Bar& bar) { + bar.Add("Foo", [] {}); + bar.Add(false, "Disabled", [] {}); + static bool check; + bar.Add("Check", [] { check = !check; }).Check(check); + }); AddFrame(bar); bar.Set([](Bar& bar) { bar.Add(CtrlImg::Diskette(), [] {}).Tip("This is test"); });