Blockland Forums > Modification Help
A few begininger questions about GUI's.
(1/1)
DrenDran:
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?
Red_Guy:

--- Quote from: DrenDran on July 10, 2010, 01:04:53 PM ---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?

--- End quote ---
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.
Navigation
Message Index

Go to full version