namespace Msp {
namespace GLtk {
-Dropdown::Dropdown(const Resources &r):
- Widget(r),
- Container(r),
- list(r),
+Dropdown::Dropdown():
dropped(false)
{
add(list);
list.signal_item_selected.connect(sigc::mem_fun(this, &Dropdown::list_item_selected));
-
- update_style();
}
void Dropdown::append(const string &item)
resize_list();
}
+void Dropdown::on_style_change()
+{
+ resize_list();
+}
+
void Dropdown::resize_list()
{
list.autosize();