Game Development Community

GUI reference docs?

by Jason McIntosh · in Torque Game Builder · 03/03/2005 (3:42 pm) · 11 replies

I'm trying to figure out GUIs now, but I can't find reference docs for what all the GUI controls are. Is there a list of this stuff somewhere?

It would be great to have tooltips in the GUI editor that describe each of the settings and widgets when you mouse over.

#1
03/03/2005 (5:29 pm)
Ha! After a long time searching resources and such, I found this, which includes a section on GUI objects.
#2
03/03/2005 (6:12 pm)
Er, ok, after actually looking at the GUI section, it's not so good. Nevermind. Not much there.
#3
03/03/2005 (6:15 pm)
Full EGTGE will have a huge section on Torque GUIs...

if you have any questions feel free to ask and if I can't answer then someone else might be able to :)

two good GUI tutorials...
First

Second
#4
03/03/2005 (9:11 pm)
@Matthew: Through trial and error I've managed to pull off what I needed, but I'll take you up on your offer if something else comes up. :)
#5
03/03/2005 (9:38 pm)
Glad you did, trial and error is what I'd recommend anyways lol, us programmers are stubborn ehh...

I know a good deal about messageVectors and guiMessageVectorCtrl... the basic ones, and the framectrl... so feel free to ask if you hit a wall :)
#6
03/03/2005 (11:47 pm)
Ok, here's one I can't figure out. How can I give a control (like a text input control) focus? The search feature here on the site leaves much to be desired, and there are no docs I can find that mention this.....?
#7
03/04/2005 (9:21 am)
Haven't tested this but might be this


ConsoleMethod( GuiTextEditCtrl, setCursorPos, void, 3, 3, "textEditCtrl.setCursorPos( newPos )" )

taken from the source code...

can try textInput.setCursorPos(0);

if I get a minute I'll test it for you

(on work pc the gui editor runs very very slow)
#9
03/04/2005 (12:58 pm)
@Matthew: Neither of those worked for me. Darn! Thanks for trying. :)

@Jeff: Thanks for the link. I had already read it. ;)
#10
03/04/2005 (1:01 pm)
Just tried it too... doesn't set focus but sets cursorPos if your in it lol... tired the MLTextEdit one too... same
#11
03/04/2005 (1:50 pm)
%gui.makeFirstResponder(1);