Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline TextBox or TextArea #44

Open
staltux opened this issue Apr 19, 2020 · 7 comments
Open

Multiline TextBox or TextArea #44

staltux opened this issue Apr 19, 2020 · 7 comments

Comments

@staltux
Copy link

staltux commented Apr 19, 2020

How a can set the TextBox to handle multiple lines?

@siredmar
Copy link
Collaborator

@staltux as far as i know multiline there currently is no multiline support for TextBox or Label. This issue has been opened in April. Did you ever built a solution and might be interested in contributing a PR?

@cesss
Copy link

cesss commented Feb 15, 2023

The new repository of nanogui (non-SDL) seems to have a multiline TextArea, but the code says it's read-only. I didn't check, though.

@dalerank
Copy link
Owner

which nanogui repo u mean? because wjacob halt work for nanogui many years ago
Im halt support this repo when move to imgui
Idk if any still use it, because it was a pet project for hardware, which support small debian port with sdl package

@cesss
Copy link

cesss commented Feb 16, 2023

I mean the mitsuba one, which seems to be maintained: https://github.com/mitsuba-renderer/nanogui

Are you going to drop nanogui and use imgui instead? I'm in fact comparing different minimalist GUI libraries just now. I want to use a C library, not C++ (yes, I've been coding in C++ for many years, but I have decided to go back to C). For this reason, I've almost decided to use Nuklear, which is C. The weak point of Nuklear is that its automatic layout is only partially automatic, and I don't want to hardcode widgets sizes anymore. If AntTweakBar had a bit nicer look, and if it was C instead of C++, it would be the perfect library for my needs.

I was considering porting nanogui to C. But it's a matter of cost: what would it take less effort, porting nanogui to C, or improving the Nuklear layout system? I'm still balancing pros and cons.

I also saw microui. Promising, but I think it requires to hardcode widgets sizes.

I keep searching, but maybe Nuklear will be my best fit. I love the nanogui looks, but you can skin Nuklear.

@dalerank
Copy link
Owner

  1. As I said it was pet lib for another hardware project, this hardware have no gpu and I need to render all opengl staff with cpu
  2. Imgui have C wrapper
  3. nanogui is dead as I see

@cesss
Copy link

cesss commented Feb 16, 2023

Ok, I understand. I know Imgui has a C wrapper, and, even if it didn't, it's always little work to write the C->C++ layer that you need. But I prefer to avoid having any C++ code in my projects, if possible (I prefer to avoid linking to the C++ standard library, and to not depend on having a C++ compiler with this or that version). I was taking a look at microui and I don't discard using it. It has the kind of minimalism I'd like.

@dalerank
Copy link
Owner

Yep, may be u r right and I need to revive this project :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants