TGVScrollBar

Hello! :smiley:

How I can assign a TGVScrollBar to a TGMainFrame? I have tried to do so with TGuiBuilder, but the frame and TGVScrollBar seemed to be totally independent.

Could you please provide me with an example of using it? I have looked for it in folder tutorials, but I couldn’t find anything.

Also, I have looked for the posts with the same problem here, and I found only this:
[url]TGHScrollBar
and I wouldn’t want to use a scrolled canvas.

Here are the screen shots of the TGMainFrame:
[url]Set TGCompositeFrame to fit into TGMainFrame

Thank you!

Hi,

Since the scroll bars need a view port, you have to use a TGCanvas, as described [url=https://root-forum.cern.ch/t/tghscrollbar/13208/1

Cheers, Bertrand.

Ok I will do it. But here is what confuses me in TGuiBuilder:

If everytime I need ScrollBar, I need to use this:

http://s22.postimg.org/d4pbtqee9/forum1.png

Why does this button here exist?

http://s23.postimg.org/mgopckw63/forum2.png

Because you can use scroll bars for any kind of use…
Note that you can try to handle scroll bars and manage layout (+hiding/showing subframes) yourself…

Cheers, Bertrand.