WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Change textbox color? (https://forum.worldviz.com/showthread.php?t=3027)

renama 10-16-2010 03:53 PM

Change textbox color?
 
I need to change the textbox color, background or font, to differentiate the enabled ones with the disabled ones. Searched the 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:
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!


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

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