diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/npcpostdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/npcpostdialog.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp index b50154a8..2d3fce64 100644 --- a/src/gui/npcpostdialog.cpp +++ b/src/gui/npcpostdialog.cpp @@ -22,6 +22,7 @@ */ #include "npcpostdialog.h" +#include "textbox.h" #include "textfield.h" #include "button.h" #include "scrollarea.h" @@ -53,8 +54,9 @@ NpcPostDialog::NpcPostDialog(): sendButton->getY()); // create textfield for letter - mText = new TextField(); + mText = new TextBox(); mText->setHeight(400 - (mSender->getHeight() + sendButton->getHeight())); + mText->setEditable(true); // create scroll box for letter text ScrollArea *scrollArea = new ScrollArea(mText); diff --git a/src/gui/npcpostdialog.h b/src/gui/npcpostdialog.h index 33a3a8f7..e142dac5 100644 --- a/src/gui/npcpostdialog.h +++ b/src/gui/npcpostdialog.h @@ -28,6 +28,7 @@ #include "window.h" +class TextBox; class TextField; class NpcPostDialog : public Window, public gcn::ActionListener @@ -49,7 +50,7 @@ public: void clear(); private: - TextField *mText; + TextBox *mText; TextField *mSender; }; |