RE: List Scrolling

Ok, I got the scrolling window to scroll from my mouse.

But I have another problem now.

I need to set the vadhustment on the window as soon as I create it, so the
window is in the center and not in the beginning.

But when I do :

Gtk_adjustment *adj = gtk_scrolled_window_get_vadjustment

Double value = gtk_adjustment_get_value (adj);

Gtk_adjustment_set_value (adj, value);

Gtk_scrolled_window_set_vadjustment(GTK_SCROLLED_WINDOW (mywindow), adj);

Nothing happends, it doesn't change. But if I put this in a callback for
like "motion-notify-event" this works fine.

The thing is that I don't want it to execute in a callback, but after I
created and added my Widget to the windows' Container.

How can I fix this ?

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