PDA

View Full Version : Trouble with Adding Item to Screen


jassel41
11-09-2010, 11:05 AM
Hi, I want to append an object to the screen, such as a 2-dimensional box. I asked this question before on the forum and was given the view link answer. This doesn't really solve what I want, because if the user maximizes the window, the box does not move or resize with the window change.

I want to have a box so that it will be connected to the screen and act as a text box would and resize if a window resizes.

Any Suggestion?

Thank you,
Jassel41

farshizzo
11-10-2010, 07:02 PM
You can register a callback for viz.WINDOW_SIZE_EVENT and resize your object whenever the window is resized.

jassel41
11-10-2010, 10:26 PM
Thanks, the main thing I wanted to add was a rectangle to the screen. I ended up simply using a text Quad and scaled it accordingly.

Thanks