Harvey Chapman wrote:
> Is there any way to declare a global enum in fluid? i.e. something  
> that results in the following:
> 
> enum MyEnum {
>    state1,
>    state2
> };
> 
> fluid doesn't allow a code block at the top-most level. If it did,  
> this would be trivial. I've tried to fake it with a declaration block,  
> but it will complain about an unterminated '{'.

        I usually just use New|Code|Declaration to put one line
        in fluid:

                #include "myappname-stuff.h"

        ..and then put all my enums and stuff in that with a text editor.
        Hust seems easier and gives me control over formatting / complex
        #ifdef'ing, and doesn't clutter up fluid with header stuff.

        I prefer to use fluid mainly as a way to manage widget
        declarations and layouts, which is what it's good at.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to