Jose Marcelo Auler wrote:

> Hello,
> I'm not an advanced user in fluid, and I don't know if I missed some
> point, but I couldn't create an Fl_Window by inheritance, only by
> composition. And for me, that's bad, because if a want to handle events I
> will need to do a subclass of Fl_Window just to forward the events to my
> handler class. To make a long story short, is there a way to create a
> Fl_Window class in fluid without composition? Thanks in advanced, J.
> Marcelo Auler

What I do is, create a Widget Class. Then change the "Class" to
Fl_Double_Window.

Here are the steps I use:

1. Create a function.
2. New->Code->Widget Class
3. Open the properties for the window that appears
4. Go to the C++ tab
5. Enter "Fl_Double_Window" into the "Class" field
6. Enter the name of the class, for example, "MyWindow" in the "Name" field.

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

Reply via email to