Game Development Community

GuiScrollCtrl vertical scroll pos invert?

by pilotcap232 · in Torque 3D Professional · 07/22/2010 (7:24 pm) · 4 replies

does anyone knows how to invert position of the vertical scroll handle.

since when you create a scroll, in the window if you enable both vertical and horz , vertical by default appears on right hand side.
ie:
_ _|


is it possible to invert it and move to the left side?

ie:
|
|_ _


cant seem to find any options, or is it hardcoded?

thanks in advanced


#2
07/26/2010 (4:45 pm)
Short answer is, yes.

It looks like you have access to the source code that is where you will need to look. It doesn't do it out of the box so it will have to be added in to the controls functionality. Once you see how it renders the slider now it shouldn't be difficult to make it configurable to render left, right, top, bottom or any combination in between. My question would be why do you need it to render on the left? It breaks standard GUI convention by doing so. We have become trained to expect the sliders on the right and bottom, you might end up a GUI that users won't like.
#3
07/26/2010 (4:54 pm)
thank Ryan,

the only reason is that I am making a chat scrollable window pretty much will be kinda transparent ish shade background so text can be seen better for the game and it will be placed on the left bottom side of the screen, so i needed the scroll to be on the left side so the scroll buttons wont be hanging on the right with a transparent background.
#4
07/26/2010 (6:37 pm)
I gotcha. What would be cool is to make the scroll container not display the scroll slider but allow you to use the mouse wheel (might already) or if no wheel is present then drag the window. You could then display an indicator on the edges indicating data out of view. It would save some real estate.