]> git.saurik.com Git - wxWidgets.git/commitdiff
Add test for wxDataViewColumn::GetWidth
authorRobert Roebling <robert@roebling.de>
Tue, 7 Apr 2009 19:33:35 +0000 (19:33 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 7 Apr 2009 19:33:35 +0000 (19:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dataview/dataview.cpp

index 3ca52dc0e9ec2de3db671f5540da6305df5ae090..cf7f30e41c6aaa503e3dc419902e48b06dd81e20 100644 (file)
@@ -931,6 +931,7 @@ void MyFrame::OnHeaderClick( wxDataViewEvent &event )
     int pos = m_ctrl[0]->GetColumnPosition( event.GetDataViewColumn() );
 
     wxLogMessage( "wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK, Column position: %d", pos );
+    wxLogMessage( "Column width: %d", event.GetDataViewColumn()->GetWidth() );
 }
 
 void MyFrame::OnHeaderRightClick( wxDataViewEvent &event )