WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 07-01-2007, 10:20 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
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?
Reply With Quote
  #2  
Old 07-02-2007, 09:29 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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()
Reply With Quote
  #3  
Old 07-02-2007, 09:47 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
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?
Reply With Quote
  #4  
Old 07-02-2007, 09:50 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
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.
Reply With Quote
Reply

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


All times are GMT -7. The time now is 11:11 PM.


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