WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Trouble with Adding Item to Screen (https://forum.worldviz.com/showthread.php?t=3071)

jassel41 11-09-2010 11:05 AM

Trouble with Adding Item to Screen
 
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


All times are GMT -7. The time now is 02:38 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC