Re: CTree hide title problem



Mickaël Villers wrote:

Hi all,

I have a problem with CTree, column_titles_hide function, and scroll widget

The best example is the ctree example of the gtkperl-tutorial
I have only add
131: my $tree = new_with_titles Gtk::CTree( 0, "Column 1", "Column 2" );
132: $tree->column_titles_hide( );
133: $tree->set_column_width( 0, 150 );

(I didn't make a patch to do it :) )

On my sid debian, I have a horizontal scroll bar and it should not !

So is it a debian problem, or a perl-gtk problem
Hi Mickaël,

I don't think that it is either, looking at the excellent gtk-perl 
tutorial at http://personal.riverusers.com/~swilhelm/gtkperl-tutorial
you will see that a CTree inherits from CList which has in the example:

# Create a scrolled window to pack the CList widget into
$scrolled_window = new Gtk::ScrolledWindow( undef, undef );
$vbox->pack_start( $scrolled_window, $true, $true, 0 );
$scrolled_window->set_policy( 'automatic', 'always' );
$scrolled_window->show();

# Create the CList. For this example we use 2 columns
$clist = new_with_titles Gtk::CList( @titles );

Which sets the horizontal scrollbar policy to automatic and the vertical
policy to always. I think that this will do what you want.

HTH, Dermot




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