SFML community forums

Help => General => Topic started by: Flaze07 on September 03, 2017, 06:11:44 pm

Title: Multi line text field(box)
Post by: Flaze07 on September 03, 2017, 06:11:44 pm
hi, is there such a thing as multi line text field (box) like JTextArea in either sfgui or tgui ?
also, if there is none...how to make one ?
Title: Re: Multi line text field(box)
Post by: eXpl0it3r on September 03, 2017, 07:15:19 pm
Did you check the documentation for SFGUI or TGUI?
Title: Re: Multi line text field(box)
Post by: Flaze07 on September 13, 2017, 04:22:24 pm
I certainly did, and I could not find anything related to multi line text box i TGUI
Title: Re: Multi line text field(box)
Post by: eXpl0it3r on September 13, 2017, 07:46:41 pm
I personally would expect a bit more flexibility from a programmer.

https://tgui.eu/documentation/0.8/classtgui_1_1TextBox.html#details

Quote
Text box widget.

A text box is a multi-line input box which supports word-wrap and a vertical scrollbar. If you are looking for a single line input field (with options like setting a password character or displaying a default text when it is empty) then check out the EditBox class

Title: Re: Multi line text field(box)
Post by: Flaze07 on September 19, 2017, 05:10:50 pm
oops, maybe I should have read the definition of each widget instead of just reading the name, my bad
Title: Re: Multi line text field(box)
Post by: FRex on September 20, 2017, 07:04:05 am
The name is 'okay'. In quite a few GUI libraries the 'entry' or 'edit' or 'edit box' is a one liner widget and 'text box', 'text edit' or 'memo' or 'text area' are multi line editors.