Depcheck Dialog: use a toggle panel for the listbox

This commit is contained in:
Charles Dang 2016-08-29 12:55:19 +11:00
parent 898d98ab8d
commit f338c48863
2 changed files with 26 additions and 7 deletions

View file

@ -87,11 +87,30 @@
grow_factor = 1
horizontal_grow = "true"
[toggle_button]
definition = "listbox_text"
[toggle_panel]
definition = "default"
return_value_id = "ok"
[/toggle_button]
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_grow = "true"
[label]
id = "option"
definition = "default"
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]

View file

@ -93,10 +93,10 @@ void tdepcheck_select_new::pre_show(twindow& window)
for(const auto & item : items_)
{
string_map current;
current.insert(std::make_pair("label", item));
std::map<std::string, string_map> data;
data["option"]["label"] = item;
listbox.add_row(current);
listbox.add_row(data);
}
listbox.select_row(0);