Problem with mouse events
Craig Deady
cdeady at systems-shop.com
Wed Oct 4 13:30:46 PDT 2006
I have the following two sample code fragments. The first code fragment
works fine, the second one causes a Segmentation fault. The only
difference is that the second responds to a mouse down event on a
wxTextCtrl object and the first is a clicked event on a button.
Any ideas why I am getting the Segmentation fault?
Linux 2.6 (Fedora Core 5) & wxWidgets 2.6.3
Thanks,
Craig
void MainPanel::OnStartrefClick( wxCommandEvent& event )
{
printf("UserLevel = %s\n",vUserLevel->GetValue().c_str());
event.Skip();
}
void MainPanel::UserSelect(wxMouseEvent& event)
{
printf("UserLevel = %s\n",vUserLevel->GetValue().c_str());
event.Skip();
}
--
Craig Deady
More information about the wx-users
mailing list