Can't Scroll #883
-
When I use a RadioButton, Menu, or Button, I can get a container that is vscrollable. But when I have other elements I cannot. For example, the official homescreen.cpp example has vScroll but from I can tell even it does not work. Help! Here is the sample homescreen.cpp from the git repo https://github.com/ArthurSonzogni/FTXUI/blob/main/examples/component/homescreen.cpp // Copyright 2020 Arthur Sonzogni. All rights reserved. #include "../dom/color_info_sorted_2d.ipp" // for ColorInfoSorted2D using namespace ftxui; int main() { // --------------------------------------------------------------------------- auto my_graph = [&shift](int width, int height) { auto htop = Renderer([&] {
}); // --------------------------------------------------------------------------- const std::vectorstd::string compiler_entries = { int compiler_selected = 0; std::array<std::string, 8> options_label = { std::vectorstd::string input_entries; auto input_option = InputOption(); std::string executable_content_ = ""; Component flags = Container::Vertical({ auto compiler_component = Container::Horizontal({ auto render_command = [&] { auto compiler_renderer = Renderer(compiler_component, [&] { // --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
}); // --------------------------------------------------------------------------- auto gauge_component = Renderer([render_gauge] { // --------------------------------------------------------------------------- auto paragraph_renderer_left = Renderer([&] { auto paragraph_renderer_right = Renderer([] { int paragraph_renderer_split_position = Terminal::Size().dimx / 2; // --------------------------------------------------------------------------- int tab_index = 0; auto exit_button = Button( auto main_container = Container::Vertical({ auto main_renderer = Renderer(main_container, [&] { std::atomic refresh_ui_continue = true; screen.Loop(main_renderer); return 0; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! Here is an answer: Does it work? |
Beta Was this translation helpful? Give feedback.
Hello!
Here is an answer:
#757 (comment)
Does it work?