diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-09 19:19:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-09 20:11:33 +0100 |
| commit | 2eab969654eca2ef4b222790c8b730a6eb709565 (patch) | |
| tree | be8b463ce2c56692275e550fd419b7bce707d414 /src/wx/editable_list.h | |
| parent | bc5b4d4dc178dad75eacb02fd2d4e98c7d3801ec (diff) | |
swaroop: required monitors checks.
Diffstat (limited to 'src/wx/editable_list.h')
| -rw-r--r-- | src/wx/editable_list.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wx/editable_list.h b/src/wx/editable_list.h index 681588215..eb06f4cf8 100644 --- a/src/wx/editable_list.h +++ b/src/wx/editable_list.h @@ -41,7 +41,8 @@ public: boost::function<void (std::vector<T>)> set, boost::function<std::string (T, int)> column, bool can_edit = true, - bool title = true + bool title = true, + int column_width = 200 ) : wxPanel (parent) , _get (get) @@ -57,13 +58,13 @@ public: if (title) { style |= wxLC_NO_HEADER; } - _list = new wxListCtrl (this, wxID_ANY, wxDefaultPosition, wxSize (columns.size() * 200, 100), style); + _list = new wxListCtrl (this, wxID_ANY, wxDefaultPosition, wxSize (columns.size() * column_width, 100), style); for (size_t i = 0; i < columns.size(); ++i) { wxListItem ip; ip.SetId (i); ip.SetText (std_to_wx (columns[i])); - ip.SetWidth (200); + ip.SetWidth (column_width); _list->InsertColumn (i, ip); } |
