Before it would start with a wide column 0 and then
resize on the first click.
2015-09-04 Carl Hetherington <cth@carlh.net>
2015-09-04 Carl Hetherington <cth@carlh.net>
+ * Fix audio mapping view changing size
+ on first click.
+
* Version 2.1.52 released.
2015-09-03 Carl Hetherington <cth@carlh.net>
* Version 2.1.52 released.
2015-09-03 Carl Hetherington <cth@carlh.net>
Bind (wxEVT_GRID_CELL_LEFT_CLICK, boost::bind (&AudioMappingView::left_click, this, _1));
Bind (wxEVT_GRID_CELL_RIGHT_CLICK, boost::bind (&AudioMappingView::right_click, this, _1));
_grid->GetGridWindow()->Bind (wxEVT_MOTION, boost::bind (&AudioMappingView::mouse_moved, this, _1));
Bind (wxEVT_GRID_CELL_LEFT_CLICK, boost::bind (&AudioMappingView::left_click, this, _1));
Bind (wxEVT_GRID_CELL_RIGHT_CLICK, boost::bind (&AudioMappingView::right_click, this, _1));
_grid->GetGridWindow()->Bind (wxEVT_MOTION, boost::bind (&AudioMappingView::mouse_moved, this, _1));
+ Bind (wxEVT_SIZE, boost::bind (&AudioMappingView::sized, this, _1));
_menu = new wxMenu;
_menu->Append (ID_off, _("Off"));
_menu = new wxMenu;
_menu->Append (ID_off, _("Off"));
+
+void
+AudioMappingView::sized (wxSizeEvent& ev)
+{
+ _grid->AutoSize ();
+ ev.Skip ();
+}
void mouse_moved (wxMouseEvent &);
void update_cells ();
void map_values_changed ();
void mouse_moved (wxMouseEvent &);
void update_cells ();
void map_values_changed ();
+ void sized (wxSizeEvent &);
void off ();
void full ();
void off ();
void full ();