From dc70b69502de6769c8fe109161f984494a0c00b8 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 19 Jan 1999 20:53:39 +0000 Subject: 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 --- documentation/common.html | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) (limited to 'documentation/common.html') diff --git a/documentation/common.html b/documentation/common.html index 97284b7d5..4fa974e75 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -60,6 +60,8 @@ Fl_Input *input = new Fl_Input(x, y, width, height, "label"); input->value("Now is the time for all good men..."); +

The string is copied to the widget's own storage when you set the +value() of the widget.

Valuators

Unlike text widgets, valuators keep track of numbers instead of strings. FLTK provides the following valuators: @@ -75,7 +77,7 @@ strings. FLTK provides the following valuators: The value() method gets and sets the current value of the widget. The minimum() and -maximum methods set the range of values that are reported by +maximum() methods set the range of values that are reported by the widget.

Groups

The Fl_Group widget class is used as a general purpose @@ -92,9 +94,11 @@ any widgets together.
  • Fl_Window - A window on the screen.
  • Setting the Size and Position of Widgets

    - The size and position of widgets is usually set when you create them. - You can change this at any time using the position, -resize(), and size methods: +The size and position of widgets is usually set when you create them. +You can access them with the x(), y(), w(), +and h() methods. +

    You can change the size and position by using the position(), +resize(), and size() methods:

    - Changing the size or position of a widget will cause a redraw of that -widget and its children. +If you change a widget's size or position after it is displayed you +will have to call redraw() on the widget's parent.

    Colors

    - FLTK manages a virtual color palette of "standard" colors. The -standard colors are: +FLTK stores the colors of widgets as an 8-bit number that is an index +into a color palette of 256 colors. This is not the X or WIN32 +colormap, but instead is an internal table with fixed contents. +

    There are symbols for naming some of the more common colors:

    The widget color can be set using the color() method: