Author Topic: Dynamic GuiScrollCtrl Bars  (Read 937 times)

For a new thing I'm making, I've got a lot of buttons (very similar to the RGB animator GUI) and I'm adding/removing them from a GuiScrollCtrl when the dimensions change.
My problem is that I can't get the scroll bars to appear (even if I set them to alwaysOn, they are greyed out). I've only ever used GuiScrollCtrl's along with GuiTextListCtrl's, and they seem to update themselves.
Also, I've dumped a GuiScrollCtrl and can't seem to find any relevant methods.

So, how do I get a GuiScrollCtrl to recognise that it has big objects inside and turn on the scrollbars?

You need to have a GuiSwatchCtrl or something at the top of the ScrollCtrl (parented to it, still) that goes behind everything else, and when your dimensions change, you have to change the dimensions of the swatch since the scroll uses the dimensions of the first object inside it to decide whether it needs to scroll or not.