On 11 Apr 2007, at 17:52, Stan wrote:

>> In FLTK, *any* widget can have a box around itself by simply calling
>> myWidget->box(FL_SOME_BOXTYPE);
>
> Right, but if you use FLUID to lay out the window, you can't
> prevent it (FLUID) from setting the box type to something.

Which version of fltk are you using? When I try and create a Fl_Box  
widget using fluid, the boxtype seems to be deaulting to FL_NO_BOX...

And in any case, you can always set it to what you like in the Styles  
tab of the widgets properties dialog, or you can over ride the box  
type by putting the type you want into the "Extra Code" section on  
the C++ tab of the widgets properties.

I'd guess either of these approaches should give the control you need?


> I was trying to keep the appearance under the control of
> the Widget itself, but I guess that's not possible without
> abandoning FLUID altogether.

Well, I think you *can* set the box type the way you want from within  
fluid - and you can always change it programmatically at run time  
anyway, then force a redraw.... that should work too!




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

Reply via email to