dialog.SetSize(300,300);
template<class T> const T* WXDialogChooseFromRegistry(const ObjRegistry<T> &reg,                                                      wxWindow*parent,const string &message                                                      ,int &choice){   wxString choices[50]; //:TODO:    for(int i=0;i<reg.GetNb();i++)       choices[i]=(reg.GetObj(i).GetClassName()+":"+reg.GetObj(i).GetName()).c_str();   wxSingleChoiceDialog dialog         (parent,message.c_str(),"Choose",reg.GetNb(),choices,0,wxOK | wxCANCEL);   if(wxID_OK!=dialog.ShowModal()) return 0;   choice=dialog.GetSelection();   return &(reg.GetObj(choice));}