Re: [gtk-list] Multi-Line CList



On Mon, Jun 14, 1999 at 09:47:08AM -0500, Key, Chris wrote:
> What would be any evils of giving a CList item the ability to be
> multi-lined?
> 
> ie:
> _
> This
> would
> be 
> in the same item box.

I believe, without changing any of the GTK+ source, you could simulate
this pretty easily.

For each line that belongs in a group, as you add it to the clist, set
the data item to a group id. For instance, each of the lines in your
example above would have their data set to 1, for group id 1.

Now, catch all of the selection signals, and when a selection occurs,
grab the group id of the selected item, and iterate over the clist
selecting any item with the same group id.

It's a little tricky in some cases, but I think not too difficult.

rjf&



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