Replies: 1 comment 1 reply
-
Hello @DirgeWuff ! Maybe you can use the FTXUI/include/ftxui/component/component.hpp Lines 115 to 118 in 15587da auto dispWindow =
Container::Vertical({
renderText,
Renderer([] { return separator(); }),
buttons[0],
Maybe(buttons[1], [&] { return paragraph == length - 2; }),
}) |
border | flex; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Alright, so I have a program I'm writing that displays text paragraphs of text from a vector. When the final chunk of text is reached, I need to add a second button. I attempted to accomplish this by using another vector containing the button objects, and changing a variable called button index that will point to the correct button object. However, after over an hour of messing around with this code, I can't get it working.
Is there a better or easier way to do this that would actually work? Any help or ideas as to why this fails to work correctly would be greatly appreciated. Cheers.
Beta Was this translation helpful? Give feedback.
All reactions