]> git.saurik.com Git - wxWidgets.git/commitdiff
set string field of wxCommandEvent object generated by spin control when its text...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 Mar 2007 15:16:35 +0000 (15:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 Mar 2007 15:16:35 +0000 (15:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/gtk/spinctrl.cpp

index b608898d23f4a4b177505753d2cb55c41721c57b..2235a91d01ef47dc01c5921dea8876d4fb618b56 100644 (file)
@@ -109,6 +109,7 @@ wxGTK:
 - wxTopLevelWindow::GetClientSize() returns 0x0 when the window is minimized.
 - Added support for colour cursors (Pascal Monasse).
 - Setting foreground colour of single line wxTextCtrl now works
+- Pass current control text to EVT_TEXT handler for wxSpinCtrl (John Ratliff)
 - Added gtk.tlw.can-set-transparency system option
 
 wxMac:
index 1c0a9fcfa0bfdf465a52e49e1e4d7e4bebd424dc..46854f59844562c3faec316db84a765dc9828830 100644 (file)
@@ -72,6 +72,7 @@ gtk_changed(GtkSpinButton* spinbutton, wxSpinCtrl* win)
 
     wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
     event.SetEventObject( win );
+    event.SetString( GTK_ENTRY(spinbutton)->text );
 
     // see above
     event.SetInt(win->m_pos);