'tgui::Textbox has not been declared'
« on: 15 October 2018, 03:03:50 »
Using the following headers, I have created a program that uses TGUI.

#include <SFML/Graphics.hpp>
#include <TGUI/TGUI.hpp>

The following code gives me the error "tgui::Textbox has not been declared," yet other widgets can be created with no problem:
tgui::Textbox::Ptr p = tgui::Textbox::create();

I've tried adding the headers below to see if that changed anything, but unsurprisingly it did not:
#include <TGUI/Widget.hpp>
#include <TGUI/Widgets/TextBox.hpp>

Anyone know how I might fix this? The main reason I downloaded TGUI was to be able to use textboxes and they seem to be the only widget that doesn't work... -_- (I am using TGUI 0.8 on CodeBlocks)
« Last Edit: 15 October 2018, 03:05:28 by Jackson »

*

texus

  • *****
  • 1279
    • View Profile
    • Texus's Blog
Re: 'tgui::Textbox has not been declared'
« Reply #1 on: 15 October 2018, 10:03:57 »
The class is called "TextBox", not "Textbox" (capital B).

Re: 'tgui::Textbox has not been declared'
« Reply #2 on: 16 October 2018, 05:20:11 »
Yikes, cannot believe it was such a simple mistake. Thanks so much for the help! :)