Re: hide scrolledWindow hscrollbar



worked it out:

class CustomScrolledWindow : public Gtk::ScrolledWindow
{
public:
    CustomScrolledWindow()
    {
        set_policy( Gtk::POLICY_NEVER, Gtk::POLICY_NEVER ) ;
    }

    virtual ~CustomScrolledWindow() {}

protected:

    virtual void
    on_size_request( Gtk::Requisition* requisition )
    {
        //Initialize the output parameter:
        *requisition = Gtk::Requisition();

        requisition->width = 1;
        requisition->height = 1;

    }
} ;


-- 
View this message in context: http://old.nabble.com/hide-scrolledWindow-hscrollbar-tp26521981p26530950.html
Sent from the Gtkmm mailing list archive at Nabble.com.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]