> 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_I
> nput(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


Yes, I can see how that makes sense...

As an aside;

Edzard, is there some tweak that could be made, so that the key can be
set directly from the Fl_Input label?

I'm wondering about removing the "redundant" use of "Cat" here in
declaring the key and the widget...

Just a thought, doesn't really matter...

-- 
Ian



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to