Closed furudbat closed 1 year ago
@furudbat It can be probably implemented using current GuiTextBox()
with some style configuration parameter, making editable the default option.
Current textbox parameters:
// TextBox/TextBoxMulti/ValueBox/Spinner
typedef enum {
TEXT_INNER_PADDING = 16, // TextBox/TextBoxMulti/ValueBox/Spinner inner text padding
TEXT_LINES_SPACING, // TextBoxMulti lines separation
TEXT_ALIGNMENT_VERTICAL, // TextBoxMulti vertical alignment: 0-CENTERED, 1-UP, 2-DOWN
TEXT_MULTILINE, // TextBox supports multiple lines
TEXT_WRAP_MODE // TextBox wrap mode for multiline: 0-NO_WRAP, 1-CHAR_WRAP, 2-WORD_WRAP
} GuiTextBoxProperty;
A new parameter can be added as:
TEXT_EDIT_MODE, // TextBox edit mode: 0-No editable, 1-Selectable-only, 2-Full editable
In any case, it requires implementation...
implemented
Hello, I used the older raygui 3.6 version and wanted to upgrade to the newser 4.0 but I'm missing GuiTextBoxMulti =/
In my own raygui fork, I added
GuiTextBoxReadOnly
, it's basicallyGuiTextBox
but with out the controls:It also accepts
const char*
, instead ofchar*
(so I can usestd::string_view
and.c_str()
easier).This can be a nice compromise if I want something like
GuiTextBoxMulti
but without a cursor (movement).