From 2df3459457eb7c83fea191fa6105fca0c8ca7e8d Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 24 Feb 2005 21:14:22 +0000 Subject: Added Greg Ercolano's simple Fl_Input_Choice widget which is a combination of the Fl_Input and Fl_Menu_Button widgets (STR #650) FL/Fl_Input_Choice.H: documentation/Fl_Input_Choice.html: - Added. documentation/fltk.book: - Added Fl_Input_Choice.html + --no-embedfonts option. documentation/index.html: - Update version number and revision. documentation/input_choice.jpg: - Added. documentation/preface.html: - Update version number and revision. documentation/widgets.html: - Add Fl_Input_Choice to lists. fluid/Fl_Menu_Type.cxx: - Add Fl_Input_Choice_Type class and instance. fluid/Fl_Type.h: - Add Fl_Input_Choice_Type class and instance. fluid/factory.cxx: - Add Fl_Input_Choice menu item. test/Makefile: - Add input_choice example. test/input_choice.cxx: - Added. test/demo.menu: - Add input_choice example. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Input_Choice.html | 100 +++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 documentation/Fl_Input_Choice.html (limited to 'documentation/Fl_Input_Choice.html') diff --git a/documentation/Fl_Input_Choice.html b/documentation/Fl_Input_Choice.html new file mode 100644 index 000000000..b941e3447 --- /dev/null +++ b/documentation/Fl_Input_Choice.html @@ -0,0 +1,100 @@ + + + + + +

class Fl_Input_Choice

+ +
+ +

Class Hierarchy

+ + + +

Include Files

+ + + +

+
+Plastic and normal Fl::scheme()s. +

+ +

Description

+

A combination of the input widget and a menu button. +The user can either type into the input area, or use the +menu button chooser on the right, which loads the input area +with predefined text. Normally it is drawn with an inset box +and a white background. +

+The application can directly access both the input and menu +widgets directly, using the menubutton() +and input() accessor methods. + +

Methods

+
+
+
+
+ +

Fl_Input_Choice::Fl_Input_Choice(int x, int y, int w, +int h, const char *label = 0)

+ +

Creates a new Fl_Input_Choice widget using the given position, size, +and label string. + +

virtual Fl_Input_Choice::~Fl_Input_Choice()

+ +

Destroys the widget and any value associated with it. + +

void Fl_Input_Choice::add(const char *s)

+ +

Adds an item to the menu.

+ +

void Fl_Input_Choice::clear()

+ +

Removes all items from the menu.

+ +

Fl_Input *Fl_Input_Choice::input()

+ +

Returns a reference to the internal Fl_Input widget.

+ +

void Fl_Input_Choice::menu(const Fl_Menu_Item *m)
+const Fl_Menu_Item *menu()

+ +

Gets or sets the Fl_Menu_Item array used for the menu.

+ +

Fl_Menu_Button *Fl_Input_Choice::menubutton()

+ +

Returns a reference to the internal Fl_Menu_Button widget. + +

void Fl_Input_Choice::value(const char *s)
+void Fl_Input_Choice::value(int v)
+const char *Fl_Input_Choice::value() const

+ +

Sets or returns the input widget's current contents. The +second form sets the contents using the index into the menu +which you can set as an integer. Setting the value effectively +'chooses' this menu item, and sets it as the new input text, +deleting the previous text.

+ + + -- cgit v1.2.3