WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 10-16-2010, 03:53 PM
renama renama is offline
Join Date: Jun 2010
Posts: 15
Change textbox color?

I need to change the textbox color, background or font, to differentiate the enabled ones with the disabled ones. Searched the <node3d:GUI:textbox> commands, I didn't find the method. I can't believe vizard does not support this basic function. Does anyone know how to change the color of the textbox, please help. Thanks in advance
Reply With Quote
Old 10-18-2010, 08:34 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
You can customize the global theme to change the colors of all GUI objects. If you just want to change the color of a single textbox, then you can use the following code:
textbox.color(viz.RED,viz.TEXTBOX_BORDER) # red border
textbox.color(viz.WHITE,viz.TEXTBOX_BACK) # white background
textbox.color(viz.BLACK,viz.TEXTBOX_TEXT) # black text
Reply With Quote
Old 10-19-2010, 07:44 PM
renama renama is offline
Join Date: Jun 2010
Posts: 15
The methods you provided are great and enough for our application.Thanks farshizzo! I am new with vizard, I got all the knolwedge just through vizard help. But I can not get the instruction of changing textbox color by searching from the help. So I was wandering if there any other documents available for learning this software or I just not get the right way to find the information in vizard help? Hope to get your advice. Thanks!
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change the color of a specific part of an avatar? Green Vizard 1 03-04-2010 08:28 AM
Change Viewpoint in different scenes lilio Vizard 1 08-28-2009 02:56 PM
Change model alpha and memory leak hosier Vizard 2 06-25-2009 10:55 AM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
Changing the Color of On-the-Fly Objects vjosh Vizard 1 01-04-2005 11:48 PM

All times are GMT -7. The time now is 10:38 AM.

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