FlTK 1.3.x (snapshot 7677)
I'm using a Fl_Help_Dialog widget and I would like to know if the file
that I'm loading is loaded successfully. Unfortunately, the function
Fl_Help_Dialog::load(const char *) doesn't have a return value, while
the function Fl_Help_View::load(const char *) has one.
I would like to know if it should be a good idea to change the function
Fl_Help_Dialog::load(const char *) to have this:
int Fl_Help_Dialog::load(const char *f) {
view_->set_changed();
int rtn = view_->load(f);
window_->label(view_->title());
return rtn;
}
instead of:
void Fl_Help_Dialog::load(const char *f) {
view_->set_changed();
view_->load(f);
window_->label(view_->title());
}
Or maybe I'm missing something very easy to do what I want... But I
found nothing into the Fl_Help_Dialog class to inform if the file has
been loaded.
Boris
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk