hi all,

I'm running on Linux with the fltk's version form the SVN.
With the code below, when I resize the Window, the TextEditor do not refresh 
(or something like that :) ).
I don't find where I'm wrong ...

Thanks,

TSalm

========== BEGIN ==========
#include <fltk/Window.h>
#include <fltk/run.h>
#include <fltk/TextEditor.h>
#include <fltk/Widget.h>

#include <iostream>

using namespace fltk;

class Test: public Window {
  TextEditor *txt;
  Widget *box;

public:

  Test():Window(300,200) {

    this->begin();
    {
      box = new Widget(0,0,10,10,""); // In the aim to have a resizable Window
      box->box(DOWN_BOX);
      txt = new TextEditor(0,0,200,200);
    }
    this->end();

    this->resizable(box);

    this->show();


    run();
  }

  ~Test() {
    delete txt;
    delete box;
  }

  void layout() {
    txt->resize(0,0,this->w(),this->h());
  }

};

int main() {
   Test *t = new Test;
}


========== END ==========
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to