PDA

View Full Version : Change textbox color?


renama
10-16-2010, 03:53 PM
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

farshizzo
10-18-2010, 08:34 AM
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

renama
10-19-2010, 07:44 PM
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!