From f93978aba486bf0fea8d9ee857d014a02f3f7d96 Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 03:39:53 +0500 Subject: wi[ --- src/Fl_Input_Choice.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Input_Choice.cxx') 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 } }; -- cgit v1.2.3