|
|
First of all I would like to thank you for your work on FLTK. I finally found the GUI library that I want to use and I hope I can also contribute to the project in the future If I properly learn C++ and when I feel ready to!
I have 2 suggestions for the doc example.
- Implement the missing callback functions. These are
insert_cb | view_cb | close_cb | undo_cb .
- Change the example a little bit, split it to files. I personally made a header file for the commons includes and for the global variables, a file for the
main() , a file for the menu bar, a file for the EditorWindow , a file for the callbacks and a file for the other functions. And of course an associative header file for each one of them (except for the one in the main). Also I would be nice to use #pragma once as we are writing C++. Even if you don't do that, PLEASE PLEASE PLEASE, make this more clear!! I wasn't able to finish the project because I can't properly implement some stuff. For example:
l_Menu_Bar*m = new Fl_Menu_Bar(0, 0, 640, 30);
m->copy(menuitems);
where should I create that? Inside the class constructor or inside the main? It's not clear and I don't know if I'm just a beginner and I should have figured that out be myself... Or:
w->editor = new Fl_Text_Editor(0, 30, 640, 370); . What is w ? I suppose it's a variable of type EditorWindow but when it was created?
Please do not suppose that we know how to do that, for noobies like me, It's not the best thing.
Again I hope I could help a bit!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
[ Direct Link to Message ] | |
|
| |