PDA

View Full Version : Scroll Bar for Text/Resize & Button Image


CompSci
07-22-2013, 06:38 AM
Hello,

Does anyone know how I would add a scroll bar to a text box?
Also, how do I re-size and change the font/color of viz.addText3D and viz.addText?

Is it possible to viz.addTexture to a button?

Thank you :)

CompSci
07-23-2013, 05:54 AM
Hello,

Does anyone know how I would add a scroll bar to a text box?
Also, how do I re-size and change the font/color of viz.addText3D and viz.addText?

Is it possible to viz.addTexture to a button?

Thank you :)

For the last question I want to add an object to a button, is that possible?

Jeff
07-23-2013, 12:49 PM
You might want to look into wxPython or another Python add-on that's used for creating GUI applications to create a textbox that scrolls. Vizard's textbox does not support that functionality.

The command index (Help->Command Index) documents the commands available on node3D objects.

For text font/color:

<node3d:text3d>.font
<node3d:text3d>.fontSize
<node3d>.color

For button image:

<node3d:GUI:button>.downpicture
<node3d:GUI:button>.uppicture

CompSci
07-24-2013, 04:23 AM
You might want to look into wxPython or another Python add-on that's used for creating GUI applications to create a textbox that scrolls. Vizard's textbox does not support that functionality.

The command index (Help->Command Index) documents the commands available on node3D objects.

For text font/color:

<node3d:text3d>.font
<node3d:text3d>.fontSize
<node3d>.color

For button image:

<node3d:GUI:button>.downpicture
<node3d:GUI:button>.uppicture

Ok, thanks, I will give this a try.