Game Development Community

GuiScrollCtrl?

by Dr. John Nobody · in Torque Game Engine · 11/20/2003 (4:17 pm) · 9 replies

Hey, as you can see here

www.border-town.net/pub/helpone.jpg
I'm having some problems with the GuiScrollCtrl. I'm trying to do the credits page for my game but I cant seem to get it to scroll to things that are out of its view (I have another image lower in the ctrl that is not visible and the control will not let me scroll down to view it)... I've messed with the settings and cant seem to find anything that turns the scrolling on or off, am I missing something here? am I doing something wrong?... help?

#1
11/20/2003 (4:26 pm)
In the GUI Editor make sure the content that you want to scroll is a child of the scroll control.

In otherwords, in the tree view in the GUI Editor make sure it has something like:

+ XXXX: - GuiScrollCtrl
   |-- XXXX: - GuiMLTextCtrl

Sorry my picture sucks but I'm sure you get the point.
#2
11/20/2003 (4:35 pm)
Ya, all the stuff I want in the scroll ctrl is set as a child of the scroll control(I probaby should have mentioned that in my original post) but it still doesnt scroll :(
#3
11/21/2003 (4:19 am)
Hmm, maybe post the code for the GUI your GuiScrollCTRL is in?! It's hard to help if we don't know what you did.
Thx
#4
11/21/2003 (10:34 am)
You might try placing all the bitmap in a subcontrol inside the gui scroll control like this:

GuiScrollCtrl
   GuiControl <- content region encloses:
      GuiBitmapCtrl
      GuiBitmapCtrl
      GuiBitmapCtrl

Does that make sense?
#5
11/21/2003 (11:32 am)
He's using the image tags from the MLTextCtrl

But I do agree he might want to encapsulate the GuiMLTextCtrl inside a GuiControl, that's usually how I did my scroll controls.

+ xxxx: - GuiScrollCtrl
|-+ xxxx: - GuiControl
  |-+ xxxx: - GuiMLTextCtrl
#6
11/21/2003 (3:25 pm)
Hrm.

That shouldn't be necessary for the ML control to be a subcontrol of the scroll control's content control. you ought to be able to have the ML as a child of the scroll control - we do that all the time in the demo mod and it works fine.
#7
11/21/2003 (7:34 pm)
Dont worry, I fixed it for him ;) He wasnt using a GuiMLTextCtrl.
#8
11/21/2003 (7:37 pm)
Well that would be a problem wouldn't it LoL
#9
11/21/2003 (8:18 pm)
Thanks guys, ya, I didnt have a GuiMLTextCtrl... I'm a scroll newb ;) anyway, thanks for all your help though, heres a finished pic!

www.border-town.net/pub/helptwo.jpg