Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Multi line text field(box)  (Read 896 times)

0 Members and 1 Guest are viewing this topic.

Flaze07

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
    • Email
Multi line text field(box)
« 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 ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9425
    • View Profile
    • development blog
    • Email
Re: Multi line text field(box)
« Reply #1 on: September 03, 2017, 07:15:19 pm »
Did you check the documentation for SFGUI or TGUI?
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Flaze07

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
    • Email
Re: Multi line text field(box)
« Reply #2 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9425
    • View Profile
    • development blog
    • Email
Re: Multi line text field(box)
« Reply #3 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

Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Flaze07

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
    • Email
Re: Multi line text field(box)
« Reply #4 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

FRex

  • Hero Member
  • *****
  • Posts: 1842
    • View Profile
    • My GitHub Page
    • Email
Re: Multi line text field(box)
« Reply #5 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.
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi