GUI2: Replace a couple of cases of label...

...with scroll_label to wrap long text
This commit is contained in:
Ignacio R. Morelle 2010-12-07 22:09:59 +00:00
parent 95667feed3
commit a3fda67a19
4 changed files with 7 additions and 7 deletions

View file

@ -61,11 +61,11 @@
border_size = 5
horizontal_alignment = "left"
[label]
[scroll_label]
id = "message"
definition = "default"
label = _ "Select difficulty level:"
[/label]
[/scroll_label]
[/column]

View file

@ -49,10 +49,10 @@
border_size = 5
horizontal_alignment = "left"
[label]
[scroll_label]
id = "message"
definition = "default"
[/label]
[/scroll_label]
[/column]

View file

@ -42,7 +42,7 @@ namespace gui2 {
* title & & label & m &
* Dialog title label. $
*
* message & & label & o &
* message & & scroll_label & o &
* Text label displaying a description or instructions. $
*
* listbox & & listbox & m &

View file

@ -43,7 +43,7 @@ namespace gui2 {
* title & & label & m &
* Dialog title label. $
*
* message & & label & m &
* message & & control & m &
* Text label displaying a description or instructions. $
*
* listbox & & listbox & m &
@ -79,7 +79,7 @@ tsimple_item_selector::tsimple_item_selector(const std::string& title, const std
void tsimple_item_selector::pre_show(CVideo& /*video*/, twindow& window)
{
tlabel& ltitle = find_widget<tlabel>(&window, "title", false);
tlabel& lmessage = find_widget<tlabel>(&window, "message", false);
tcontrol& lmessage = find_widget<tcontrol>(&window, "message", false);
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
window.keyboard_capture(&list);