|
From: <ra...@am...> - 2002-09-05 11:20:33
|
Hello,
I'm experimenting with the fltk gui toolkit that comes with Dev-C++ and I'm
puzzled with the Fl_Text_Editor object. The Fl_Text_Editor becomes visible
only when I start typing in it! Here is the code I use:
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Text_Editor.H>
#include <FL/Fl_Text_Buffer.H>
int
main (int argc, char *argv[])
{
Fl_Window *window;
Fl_Text_Editor *editor;
Fl_Text_Buffer *textbuf;
window = new Fl_Window (600, 600);
textbuf = new Fl_Text_Buffer(1024);
editor = new Fl_Text_Editor(10, 150, 300, 300);
editor->buffer(textbuf);
editor->take_focus();
window->end ();
window->show (argc, argv);
return Fl::run();
}
What am I missing?
__|||__
@(° °)@
----------------------------oOO--(_)--OOo----------------------------
Raphaël Bollen
Project engineer
Ampco Belgium
http://www.ampcobelgium.be
http://www.audiodeal.net
mailto:ra...@am...
Hoek 76, unit 72
2850 Boom
TEL.: 03 844 67 97
FAX: 03 844 67 46
|