summaryrefslogtreecommitdiff
path: root/src/Fl_Input_Choice.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Input_Choice.cxx')
-rw-r--r--src/Fl_Input_Choice.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Input_Choice.cxx b/src/Fl_Input_Choice.cxx
index e01743eb6..59aeecfe9 100644
--- a/src/Fl_Input_Choice.cxx
+++ b/src/Fl_Input_Choice.cxx
@@ -95,7 +95,7 @@
\endcode
\par Subclassing Example
- One can subclass Fl_Input_Choice to override the virtual methods inp_x/y/w/h()
+ One can subclass Fl_Input_Choice to the virtual methods inp_x/y/w/h()
and menu_x/y/w/h() to take control of the internal Fl_Input and Fl_Menu_Button widget
positioning. In this example, input and menubutton's positions are swapped:
\code
@@ -105,11 +105,11 @@
class MyInputChoice : public Fl_Input_Choice {
protected:
- virtual int inp_x() const { return x() + Fl::box_dx(box()) + menu_w(); } // override to reposition
- virtual int menu_x() const { return x() + Fl::box_dx(box()); } // override to reposition
+ virtual int inp_x() const { return x() + Fl::box_dx(box()) + menu_w(); } // to reposition
+ virtual int menu_x() const { return x() + Fl::box_dx(box()); } // to reposition
public:
MyInputChoice(int X,int Y,int W,int H,const char*L=0) : Fl_Input_Choice(X,Y,W,H,L) {
- resize(X,Y,W,H); // necessary for ctor to trigger our overrides
+ resize(X,Y,W,H); // necessary for ctor to trigger our s
}
};