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

Author Topic: How to make a textbox  (Read 3606 times)

0 Members and 1 Guest are viewing this topic.

Qiu3344

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
How to make a textbox
« on: April 03, 2017, 09:30:18 pm »
Hello, I'm making a GUI library and I'd like to ask how to make a textbox with horizontal and vertical scrolling ???


Edit: maybe you can recommend a GUI library that alredy exist :)
« Last Edit: April 03, 2017, 09:34:03 pm by Qiu3344 »

JayhawkZombie

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: How to make a textbox
« Reply #1 on: April 04, 2017, 12:29:03 am »
You can try TGUI: https://tgui.eu/
My team is using it exclusively for our engine's in-game UI (shh, texus doesn't know yet).

You can also check out SFGUI: http://sfgui.sfml-dev.de/
And ImGUI: https://github.com/ocornut/imgui

Qiu3344

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: How to make a textbox
« Reply #2 on: April 04, 2017, 02:16:28 pm »
Thank you for the answer  :D   I

I will try TGUI 

Edit: 0.74 or 0.8?

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: How to make a textbox
« Reply #3 on: April 04, 2017, 03:38:30 pm »
Unfortunately TGUI does not support horizontal scrolling in TextBox, only vertical. Although I don't think SFGUI or ImGUI have support for it either. For ImGUI there does seems to be an open issue for it with some hacky partially working code from 2015 though.

Quote
0.74 or 0.8
If you want to use TGUI then 0.7.4 is for when you want to be certain that my future patches don't break your code, 0.8-dev if you want to have the latest stuff but find it acceptable to from time to time make changes in your code when updating to a newer revision. The layout system is currently the only part that is still planned to get an overhaul in 0.8-dev in a few months, although there probably will be some other major changes that I will come up with afterwards.

Quote
shh, texus doesn't know yet
He does now :)
TGUI: C++ SFML GUI

Qiu3344

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: How to make a textbox
« Reply #4 on: April 04, 2017, 06:04:53 pm »
ImGUI looks pretty good, but on that image I can see that I can't set the location of the GUI elements:
https://raw.githubusercontent.com/wiki/ocornut/imgui/web/code_sample_01.png

Qiu3344

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: How to make a textbox
« Reply #5 on: April 04, 2017, 06:20:21 pm »
I know already  GTKmm so maybe there is a way to use it with SFML ?