Hello everybody,
i've some doubt about this code (omissis header and include files)
file: main.cpp
int main(int argc, char *argv[]) {
int k = 0;
Test *test = new Test();
k = Fl::run();
delete test;
return k;
}
file: Test.cpp
Test::Test() {
this->win = new Fl_Window(100, 100, 250, 170);
this->win->label("TEST");
this->win->begin();
this->output = new Fl_Multiline_Output(0, 20, 250, 150);
this->win->end();
this->win->show();
};
Test::~Test() {
Fl::delete_widget(this->win);
};
First: is it correct to set the label inside the constructor or is the space
for "TEST" released at the end of function?
Second: is it the right way to release win (and it's child) with the call in
the destructor?
Thanks!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk