mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-16 16:08:08 +08:00
Fix mouse wheel on checkbox. (#205)
This commit is contained in:
@@ -50,10 +50,14 @@ int main(int argc, const char* argv[]) {
|
||||
// -- Checkbox ---------------------------------------------------------------
|
||||
bool checkbox_1_selected = false;
|
||||
bool checkbox_2_selected = false;
|
||||
bool checkbox_3_selected = false;
|
||||
bool checkbox_4_selected = false;
|
||||
|
||||
auto checkboxes = Container::Vertical({
|
||||
Checkbox("checkbox1", &checkbox_1_selected),
|
||||
Checkbox("checkbox2", &checkbox_2_selected),
|
||||
Checkbox("checkbox3", &checkbox_3_selected),
|
||||
Checkbox("checkbox4", &checkbox_4_selected),
|
||||
});
|
||||
checkboxes = Wrap("Checkbox", checkboxes);
|
||||
|
||||
|
Reference in New Issue
Block a user