Re: [gtk-list] checklistbox widget?
- From: Havoc Pennington <rhpennin midway uchicago edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] checklistbox widget?
- Date: Wed, 9 Dec 1998 14:09:52 -0600 (CST)
On Wed, 9 Dec 1998, Vadim Zeitlin wrote:
>
> I'd like to implement a "checklistbox" widget with GTK: this is
> something like a normal listbox (i.e. it shows a column of items
> with scrollbar possibly), but each item has a checkbox at its
> left.
>
> Of course, I wouldn't like to write it from scratch, but rather
> somehow use existing listbox and checkbox widgets, however I don't
> really know how to do it. What's the best (or just any :-) way
> to combine them together?
>
Using existing widgets, you can stuff GtkCheckButton in GtkList, or you
could make a VBox full of GtkCheckButton, or something like that. However
if you have lots of items it could be sluggish. It might look kind of dumb
too.
For gnome-apt, I've hacked a tree with this feature, using GtkDrawingArea.
You can find it at http://www.debian.org/~hp/gnome-apt.html and see if
it's helpful. drawtree.h, drawtree.cc.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]