> Im creating now a ide, based on test/editor.cxx jn FLTK2. And > i 30-40% finished. But i stucked in problem. How to add a new > tab with texteditor, on clicking a button or menu? > Please, give me example. Modify the editor.cxx, please!
Are you sure that fltk-2 is the right choice for you? It is still alpha, and not all that well supported (though Ben and rainbowsally have been doing good work recently...) Fltk-1.3 is more active and more stable, so may be a better choice. In answer to your question, you'd need to put the editor widget inside a tab group, and when you want to add another editor pane, from the (menu item or button) callback you'd create the new editor instance (probably inside a group for tidiness) and then add that to the enclosing tab group. 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

