开发者

Scrolling by hiding scroller in GtkScrolledWindow

I have a gtkscrolledwindow object which sets to GTK_POLICY_NEVER for both horizontal

and vertical scrollbar. I have placed one button on each side of it.开发者_开发百科 My requirement is

when i click left button all the elements should scroll left and vice versa for right

button. So, on what ways this requirement can be achieved.


This can be achieved by using Adjustment associated with the scrolledwindow. get the adjustment object from scrolledwindow and set the new value for the adjustment then scrolling effect will come into effect. within the scrolled window you can add any number of widgets....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜