On 17.04.2010, at 19:05, SebHoll wrote:

> Quick question:  I was under the impression that the two box type variants 
> were supposed to be effectively equivalent, with the only difference being 
> that FL_*_FRAME variants don't draw a background.  This seems to be the case 
> for the first few, but some are different.  E.g. FL_BORDER_FRAME uses a grey 
> border, instead of the black border that FL_BORDER_BOX uses.  And similar 
> stories for FL_SHADOW_FRAME, FL_ROUNDER_FRAME, FL_OVAL_FRAME.
> 
> http://www.fltk.org/documentation.php/doc-1.1/common.html#boxtypes
> 
> Is there any specific reason why this is the case?  And if there is, is 
> there another way that I can get a black border (without a background)?  I 
> moved a few styles from FL_BORDER_BOX to FL_BORDER_FRAME and had a good 
> half-hour of head scratching trying to work out where my borders had gone on 
> my grey background... :P

This scheme is a leftover from Forms Library times. The order back then was 
always ..._UP_BOX, .._DOWN_BOX, ..UP_FRAME, ..DOWN_FRAME.

You can easily create a new box type to get the drawing style that you need.

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

Reply via email to