diff options
| author | jacob1 <jfu614@gmail.com> | 2012-09-26 01:17:49 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-26 15:46:29 (GMT) |
| commit | 6ec915df8093804d4c48fed93f3495adb0183ccd (patch) | |
| tree | 9a1a225c207713820de8a4e68a77fc905064c0be /src/dialogues/TextPrompt.cpp | |
| parent | 2f26fac9d04720346d262031d3ed1051ae5b237d (diff) | |
| download | powder-6ec915df8093804d4c48fed93f3495adb0183ccd.zip powder-6ec915df8093804d4c48fed93f3495adb0183ccd.tar.gz | |
make PROP interface a little easier to use (first part of tpt issue 78)
Diffstat (limited to 'src/dialogues/TextPrompt.cpp')
| -rw-r--r-- | src/dialogues/TextPrompt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dialogues/TextPrompt.cpp b/src/dialogues/TextPrompt.cpp index 85472a0..dbaefd2 100644 --- a/src/dialogues/TextPrompt.cpp +++ b/src/dialogues/TextPrompt.cpp @@ -62,6 +62,7 @@ TextPrompt::TextPrompt(std::string title, std::string message, std::string text, } textField->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; AddComponent(textField); + FocusComponent(textField); ui::Button * cancelButton = new ui::Button(ui::Point(0, Size.Y-16), ui::Point((Size.X/2)+1, 16), "Cancel"); cancelButton->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; |
