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

Author Topic: Multi line text field(box)  (Read 2521 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: 10777
    • 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
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

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: 10777
    • 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
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

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: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • 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.
Back to C++ gamedev with SFML in May 2023

 

anything