47 gcn::Label *senderText =
new Label(
_(
"To:"));
48 senderText->setPosition(5, 5);
50 mSender->setPosition(senderText->getWidth() + 5, 5);
54 auto *sendButton =
new Button(
_(
"Send"),
"send",
this);
55 sendButton->setPosition(400 - sendButton->getWidth(),
56 170 - sendButton->getHeight());
57 auto *cancelButton =
new Button(
_(
"Cancel"),
"cancel",
this);
58 cancelButton->setPosition(sendButton->getX() - (cancelButton->getWidth() + 2),
63 mText->setHeight(400 - (
mSender->getHeight() + sendButton->getHeight()));
64 mText->setEditable(
true);
68 scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
69 scrollArea->setDimension(gcn::Rectangle(
71 380, 140 - (
mSender->getHeight() + sendButton->getHeight())));
static DialogList instances
void action(const gcn::ActionEvent &event) override
Called when receiving actions from the widgets.
~NpcPostDialog() override
void setVisible(bool visible) override
Overloads window setVisible by Guichan to allow sticky window handling.
std::list< NpcPostDialog * > DialogList
A text box, meant to be used inside a scroll area.