Replies: 1 comment 1 reply
-
Thanks @njk42 for using FTXUI and this message! I am following the Chromium/Google C++ Style guide. As such, I do not use C++ exceptions. FTXUI library and examples compile without compiler support for exceptions. |
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
-
I'm really liking the terminal-based UI capabilities which this library provides, and am starting to get a decent feel for how all of the components, elements, containers, renderers, etc. come together hierarchically and functionally. Thank you for the effort you've put into developing it!
However, I'm not finding any information in the examples or documentation recommending how to handle exceptions which might be thrown from within one of the functions (often a lambda) that one attaches to a UI element like a Button.on_click() or CheckboxOption.on_change(). (e.g. Where would one put a Try/Catch block?)
It would be great to see this prototyped into a Modal element to show an error message when an exception is caught, or alternatively provide some other "Best-Practice" for handling the case where program logic gets invoked from within a GUI element but doesn't function as desired and an exception or error information needs to be relayed to the user. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions