summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-05-16 08:17:45 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-05-16 08:17:45 +0000
commit1feb3ed69ccc5466bfcecf34f585d36465cbed68 (patch)
tree5a51629fb5fa126a85333a6e85bfa1742123754d /documentation
parent6312531457711a325bdc38e6624a61d4d2d4a955 (diff)
More documentation for creating a custom box type. I am sure this could be written more elegantly, but my English seems to get worse every day ;-/
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
-rw-r--r--documentation/common.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/documentation/common.html b/documentation/common.html
index 53e91ad4f..f25477f99 100644
--- a/documentation/common.html
+++ b/documentation/common.html
@@ -350,6 +350,16 @@ Fl::set_boxtype(XYZ_BOX, xyz_draw, 1, 1, 2, 2);
offsets for the x, y, width, and height values that should be
subtracted when drawing the label inside the box.</P>
+<P>A complete box design contains four box types in this order:
+a filled, neutral box (<TT>UP_BOX</TT>), a filled, depressed box
+(<TT>DOWN_BOX</TT>), and the same as outlines only (<TT>UP_FRAME</TT>
+and <TT>DOWN_FRAME</TT>). The function
+<TT><A HREF="#fl_down">fl_down(Fl_Boxtype)</A></TT>
+expects the neutral design on a boxtype with a numerical
+value evenly divideable by two.
+<TT><A HREF="#fl_frame">fl_frame(Fl_Boxtype)</A></TT>
+expects the <TT>UP_BOX</TT> design at a value divideable by four.</P>
+
<H2><A NAME="labels">Labels and Label Types</A></H2>
<P>The <TT>label()</TT>, <TT>align()</TT>, <TT>labelfont()</TT>,