WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-19-2009, 04:28 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
This looks like a bug, it will be fixed in the next release.

As a workaround, you can set the main text of the info box blank and add an additional text message which should preserve left alignment. Here is some sample code:
Code:
import viz
import vizinfo
viz.go()

M1 = """Help:
Select a muscle to closer examine it
Use the arrow keys to move the selected muscle
Use the right mouse button to rotate the selected muscle
Use + to zoom in and - to zoom out on the selected muscle
Press h to turn help on/off
Press r to reset the model"""

M2 = """Ayuda:
Seleccione un m?culo m? cerca para examinarlo
Utilice las llaves de flecha para mover el m?culo seleccionado
Utilice el bot? de rat? derecho para girar el m?culo seleccionado
Uso + enfocar adentro y - enfocar hacia fuera en el m?culo seleccionado
Presione h para dar vuelta a ayuda con./desc.
Presione r para reajustar el modelo"""

helpmenu = vizinfo.add('')
helptxt = helpmenu.add(viz.TEXT3D,M1)

def setHelpText(txt):
	helptxt.message(txt)
	helpmenu.dirty()
vizact.onkeydown(' ',setHelpText,M2)
FYI, you can use triple quoted strings to construct multi-line messages. This way you don't need to manually insert newline characters.
Reply With Quote
 


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
Vizard tech tip: Text to Speech Jeff Vizard 1 01-15-2009 10:39 PM
Modifying Vizinfo to Support Re-parenting Tip Gladsomebeast Vizard 0 12-16-2008 06:34 PM
text output jaclyn.bill Vizard 2 10-24-2007 07:37 AM
adding 2D text via script V.shazzle Vizard 3 09-19-2005 03:45 PM
3d Text with Transparent Borders vjosh Vizard 3 12-01-2004 11:50 AM


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


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