]> git.saurik.com Git - wxWidgets.git/commitdiff
show the new size of the grid row/col which was resized (test for r60435 changes)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Apr 2009 22:00:54 +0000 (22:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Apr 2009 22:00:54 +0000 (22:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/grid/griddemo.cpp

index dc42486acbd8be074445aee43660fa4247098b21..b89fd42b7927098ebedfa2f64110663714cdae6b 100644 (file)
@@ -940,7 +940,10 @@ void GridFrame::OnCellLeftClick( wxGridEvent& ev )
 
 void GridFrame::OnRowSize( wxGridSizeEvent& ev )
 {
-    wxLogMessage(_T("Resized row %d"), ev.GetRowOrCol());
+    const int row = ev.GetRowOrCol();
+
+    wxLogMessage("Resized row %d, new height = %d",
+                 row, grid->GetRowSize(row));
 
     ev.Skip();
 }
@@ -948,7 +951,10 @@ void GridFrame::OnRowSize( wxGridSizeEvent& ev )
 
 void GridFrame::OnColSize( wxGridSizeEvent& ev )
 {
-    wxLogMessage(_T("Resized col %d"), ev.GetRowOrCol());
+    const int col = ev.GetRowOrCol();
+
+    wxLogMessage("Resized column %d, new width = %d",
+                 col, grid->GetColSize(col));
 
     ev.Skip();
 }