about setPosition
I'm trying to use vizinfo and textbox to establish a form. I wanna some textboxes arranged on the vizinfobox on certain positions. e.g. horizontallly, not vertically, ordered. This is hard because the setPosition attribute can only change the position of label of textbox and the position of the input field can't be changed in this way. Can any experts tell me whether I can do it in this way?
If yes, how can I do it? Regards |
Quote:
Tbox = viz.add(viz.TEXTBOX, 'tb') Tbox.setPosition(.2,.2) |
I would avoid using the vizinfo feature for detailed control over GUI elements.
Try manualy aranging the gui. Here is some sample code. Because the elements are under the viz.ORTHO parent, there positions are specified in pixels. Code:
guiRoot = viz.addGroup(parent=viz.ORTHO) |
All times are GMT -7. The time now is 07:27 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC