Jeff Paranich schrieb:
> private: std::map<std::string, Fl_Input>  m_Input; typedef
> std::map<std::string, Fl_Input>::iterator InputItr;

typedef std::map< std::string, Fl_Input*, std::less< string > > 
td_map_string_input;
td_map_string_input m_Input;
td_map_string_input::iterator InputItr;

You must use Fl_Input*, because these must be dynamic objects.

> m_Input.insert(std::make_pair<std::string,Fl_Input>("Cat",Fl_Input(140,
> 120, 33, 25, "Cat")));

begin();        // to insert objects into Fl_Window
m_Input["Cat"]= new Fl_Input(140, 120, 33, 25, "Cat");
[...]
end();          // to take new objects

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to