CList scrolling



Hi, what little documentation I could find on the CList widget in
gtk1.2 says that I have to place it into a ScrolledWindow to get
scrolling.  I did that, using ScrolledWindow::add_with_viewport.  But
that makes the column headings scroll together with the rest!  How can
stop that and get normal listbox scrolling?

Here's the relevant bit of code:

  Gtk::ScrolledWindow* p_scrolled = manage(new Gtk::ScrolledWindow);
  p_clist = manage(new Gtk::CList(4, titles));
  p_scrolled->add_with_viewport(*p_clist);
  pack_start(*p_scrolled, 1, 1, 5);

-- 
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.



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