Re: [gtkmm] How to hide ScrollBars in ScrolledWindow?



Hi,

* Iwan van Rienen <iwan iwans net> [2002-12-13 11:22:22]:
> Hi All,
> 
> With gtkmm2 I've placed a TreeView in a ScrolledWindow (this all placed in 
> a table cell).
> 
> I'd like to hide the vertical scrollbar, setting the policy in 
> ScrolledWindow to Gtk::POLICY_NEVER or using get_vscrollbar ( ) ->hide() 
> does not work as expected.

Using set_policy() on the ScrolledWindow should work:

swin->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_NEVER);.

It should work, and if it doesn't, then give us some more code to play
with.

  - Morten.




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