WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Unhidden Menu (https://forum.worldviz.com/showthread.php?t=1130)

Jerry 07-01-2007 10:20 AM

Unhidden Menu
 
How do make a vizMenu stay unhidden when you move the mouse away from it?
Also, how do you change the font size?

farshizzo 07-02-2007 09:29 AM

Hi Jerry,

To make the menu stay unhidden, use the following command:
Code:

menu.setAutoHide(False)
To change the font size of the menu you can do the following:
Code:

import vizmenu
vizmenu.MENU_FONT_SIZE = 32
menu = vizmenu.add()


Jerry 07-02-2007 09:47 AM

The vizmenu.MENU_FONT_SIZE method changes the font size for sub menus but not the main menu. This is strange because if I change the value of MENU_FONT_SIZE in vizmenu.py it does affect the size of the main menu text. I realize I shouldn't mess with vizmenu.py, so is there a way to change the text size of all menus from within my script?

Jerry 07-02-2007 09:50 AM

Neve mind. The problem was that I added vizmenu.MENU_FONT_SIZE = 24 after having added some menus. I guess it has to be added just after import vizmenu.


All times are GMT -7. The time now is 04:18 AM.

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