Author Topic: A few begininger questions about GUI's.  (Read 396 times)

So I've been programming in torque for a little while but never bothered to move on to GUI related stuff. Now I'm starting a add-on/project which needs it's own gui, so I have a few questions:

1. How do I add and remove text from a GuiScrollCrtl?
2. What is the name of the text bar input gui?
3. How do I get the value of and change that gui?

So I've been programming in torque for a little while but never bothered to move on to GUI related stuff. Now I'm starting a add-on/project which needs it's own gui, so I have a few questions:

1. How do I add and remove text from a GuiScrollCrtl?
2. What is the name of the text bar input gui?
3. How do I get the value of and change that gui?
open an existing gui that does these things and look to see how they are setup -- thats your best option.

For the scroll control - you dont ever add things directly to a GuiScrollCtrl.  when you make the gui, you add a listcontrol or text edit as a child of the scroll control, and then add/remove stuff to that.  The scroll control will automaticly handle all the scrolling stuff and displaying of scrollbars.  most of the time you dont need to do anything but set which scrollbars you want it to display.