summaryrefslogtreecommitdiff
path: root/documentation/basics.html
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-01-19 20:53:39 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-01-19 20:53:39 +0000
commitdc70b69502de6769c8fe109161f984494a0c00b8 (patch)
treeb6b764b7ad24c2a70849ccde9bd3ca8ce81c5a43 /documentation/basics.html
parent01937a1cf8d3e81336af4bd47adb327aff7b5a4d (diff)
Updated documentation with changes from Bill.
Added new image files for buttons. git-svn-id: file:///fltk/svn/fltk/trunk@237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/basics.html')
-rw-r--r--documentation/basics.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/documentation/basics.html b/documentation/basics.html
index 4de221c41..4b78f840b 100644
--- a/documentation/basics.html
+++ b/documentation/basics.html
@@ -121,7 +121,7 @@ program by closing the window or pressing the ESCape key.
arguments to the constructors are usually one of the following:
<UL>
<PRE>
-Fl_Widget(boxtype, x, y, width, height)
+Fl_Widget(boxtype, x, y, width, height, label)
Fl_Widget(x, y, width, height)
Fl_Widget(width, height)
</PRE>
@@ -139,6 +139,11 @@ pixels. </P>
<P>The <TT>width</TT> and <TT>height</TT> parameters determine the size
of the widget or window in pixels. The maximum widget size is
typically governed by the underlying window system or hardware. </P>
+<p><tt>label</tt> is a pointer to a character string to label the
+widget with or <tt>NULL</tt>. If not specified the label defaults to
+<tt>NULL</tt>. The label string must be in static storage (such as a
+string constant) because FLTK does not make a copy of it (it just uses
+the pointer).
<H3>Labels</H3>
All widgets support labels. In the case of window widgets, the label
is used for the label in the title bar. Our example program calls the <A href=Fl_Widget.html#Fl_Widget.labelfont>