   wxWidget: dynamic buttons events handling
  Hi, I just created 4 wxButtons as follows:  for (int t=0; t<4; ++t)  {wxString ButtonName;ButtonName.Append(_T("Load"));char generic[10];label2.Append(_T(itoa(t,generic,10)));new wxButton(panel2, wxOPENINDEPENDENTVARBUTTON, "Label", wxPoint(10,(30+t*20)), wxSize(80,20),0,wxDefaultValidator, ButtonName);  }Buttons are therefore named "Button0", "Button1", "Button2", "Button3".But how do I address them ? I mean, say I want to loop through all of them and retrieve the label name ?   
  If you need to reference them later, then keep the pointers to the wxButton objects you created.  Just store them in an array or std::vector<>.   