Game Development Community

Changing the scrollbar width

by Mattias Oldenborg · in Torque Game Engine · 01/25/2007 (7:07 am) · 2 replies

I'm wondering if anyone knows how to change the width of the scrollbar in the GuiScrollCtrl.
I have tried simply changing the image size of the demoScroll picture but this messes up the scrollbar completely.
Another hack I tried which sorta works was to use alpha and make the scrollbar partly transparent. The problem here is that you can still click and drag outside of the scrollbar, also its not a very practical layout for artists to work with.

#1
01/25/2007 (7:11 am)
I am fairly certain that scrollbar width is hard-coded in the engine somewhere, as is some of the stuff you'd want to customize with Slider controls. All experiments we have done with changing the width have been disastrous from script

Since you have access to the source, I'd recommend looking into the GUI scrollbar control and seeing if you might be able to fiddle with it
#2
01/25/2007 (7:23 am)
You need to modify the captions for the bitmap array. C++ only.