Add RadioBox.

This commit is contained in:
Arthur Sonzogni
2019-01-18 22:41:33 +01:00
parent a6040bc360
commit 01827ea8ce
8 changed files with 164 additions and 48 deletions

View File

@@ -20,11 +20,21 @@ class MyComponent : public Component {
box_1_.label = L"Build examples";
box_2_.label = L"Build tests";
box_3_.label = L"Use WebAssembly";
box_3_.state = true;
}
Element Render() {
return
window(text(L" Checkbox "),
hbox(
container_.Render()
)
);
}
};
int main(int argc, const char *argv[]) {
auto screen = ScreenInteractive::TerminalOutput();
auto screen = ScreenInteractive::FixedSize(30,5);
MyComponent component;
screen.Loop(&component);
return 0;