MacArthur, Ian (SELEX GALILEO, UK) schrieb:
>> 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?
void FooWindow::New_Input(int x, int y, int w, int h, const char* label)
{
m_Input[label]= new Fl_Input(x, y, w, h, label);
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk