Page 1 of 1

Scrollbars Not Showing Up

Posted: Fri Jul 15, 2011 2:59 pm
by xclntdesign
I have created an rTree in a new substack. I have set the scrollbars to both horizontal and vertical, large size and saved the stack.

When I click a button on my main stack to show the substack (first I tried modal, then toplevel, and neither made a difference), the rTree shows up without the scroll bars. If I expand one of the nodes, the scrollbars show up.

I tried adding the "set the autoScrollbar of control" command before the substack is opened, and that had no effect either.

I have another rTree in my main stack with the exact same data and setup, and the scrollbars work fine on that one.

Obviously I'm doing something wrong, but I can't figure out what it is for the life of me. Any help I can get would be great appreciated.

Re: Scrollbars Not Showing Up

Posted: Fri Jul 15, 2011 4:32 pm
by wilstrand
Hi xcIntdesign!

If you have the autoScrollbar property of the tree set to true it means that the scrollbars only shows if the visible nodes are taking up more space than is available in the control. Maybe this is why they show when you expand the node?

To have the scrollbars always show, set the autoScrollbar property of the tree to false and check the hScrollbar and vScrollbar in the Property Inspector accordingly.

Please let me know if this solves your problem!

With my best regards
Mats

Re: Scrollbars Not Showing Up

Posted: Fri Jul 15, 2011 5:10 pm
by xclntdesign
That seems to have done the trick. Thanks!

Re: Scrollbars Not Showing Up

Posted: Thu Feb 28, 2013 4:31 pm
by Mag
Hi, is the autoScrollbar property something that I can set also for standard fields? I can't find it in the inspector palette...