Hiding the scrollbar?



Hi,

I need to hide the vertical scrollbar of a scrolledWindow, but
preserving its functionality. Setting the policy to NEVER won't work,
because then the viewport isn't clipped anymore... the Scrolledwindow
expands to the size of the contained widget.

the best I could do is

        mScrolledWindowDeselected->get_vscrollbar()->set_sensitive(false);
        mScrolledWindowDeselected->get_vscrollbar()->set_size_request(0,0);

but this leaves a thin line... 

        mScrolledWindowDeselected->get_vscrollbar()->hide();

is ignored.

Is it possible to do this?

Thank you

Maurizio






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