Re: CTree vs CList



>I'd like to find a widget with the following features:
>-hierarchical (?) view (eg. directories, subdirs and files) .
>- ability to left-click, double-click & right-click on a row, to call
>differents methods (eg: 'launch', 'expand' or 'show context-menu' ).
>
>I thought Ctree was the right widget for me, because of the hierarchy feature,
>but it seems that row can't be left-clicked or double-clicked. There's only th
>e
>'select-row' event, which is not enough.

this isn't true. just catch the button_press_event and handle it
yourself. you can find out the row/col of the widget with
gtk_ctree_get_selection_info(). i do this a great deal.

--p





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