Re: GtkClist scrolling problem



Hi,

    Thank you for your reply. Can you please let me know the location where I have
to put the code. I mean, is it when creating the clist or on a partcular event. When
I tried to print the upper and lower member variable of the "vadjustment" of clist,
it was '0'.

Regards
Deekshit M

Retgards
Deekshit M

Philip Van Hoof wrote:

On Tue, 2002-09-17 at 14:26, Deekshit Mantampady wrote:

THEscrolledwindow is the scrolledwindow used for the GtkCList

{
 GtkAdjustment *adj;

 adj = gtk_scrolled_window_get_vadjustment
        (GTK_SCROLLED_WINDOW (THEscrolledwindow));

 gtk_adjustment_set_value (adj, adj->upper - adj->page_size);

}

Hi All,

      I am using GTK 1.2 for a specific application, where I am using a
GtkCList. I will be adding rows to the GtkClist dynamically. The widget is
contained in a scrolled window. But I am facing one problem. When the number of
rows exceeds the view area(When the scrolbar appears), the scrollbar is not
moving to show the added/appended item.  Similarly, when I select an item the
list is not scrolled automatically to view the selected row. This is very
irritating each time to check the list by scrolling down and to check whether
any row is selected or not.

Can anybody help me to solve the problem.

Thanks in advance

Regards
Deekshit M




_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





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