Non editable TextBox

Started by Matt Guerrette, 07 January 2014, 23:13:16

Matt Guerrette

Is there a way to make the TextBox class non editable? I just want to use it as a log panel.

texus

You could disable it, which will stop the events from reaching the text box.
Code (c++) Select
textbox->disable();

However if you do this then the scrollbar won't work anymore.

So I would suggest using the ChatBox widget to create a log panel.

Matt Guerrette

Thanks, lol I was just thinking of trying that.