WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-09-2010, 11:55 AM
Woosuk Jang Woosuk Jang is offline
Member
 
Join Date: Jun 2009
Posts: 8
Vizinfo box: help with aligning text

We have a program that uses the vizinfo box with text next to radio buttons inside but for some reason the text aligns itself to the rightmost side (closest to the radio buttons) and I'm having trouble trying to get it left-aligned.

The snippet looks like:

Code:
subTalk = vizinfo.add("")
...
aRadio = subTalk.add(viz.RADIO, 0, Level1[0]); bRadio = subTalk.add(viz.RADIO, 0, Level1[1]); cRadio = subTalk.add(viz.RADIO, 0 ,Level1[2])
Where Level1 is the array with the various text in it. Any help on getting it to be left-aligned without modifying the text?

Thanks.
Reply With Quote
  #2  
Old 07-12-2010, 05:02 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could use the alignment method on the vizinfo box:
Code:
subTalk.alignment(viz.TEXT_LEFT_CENTER)
You may also want to take a look up the vizdlg module in the Vizard docs. That will allow you to add GUIs and other elements to panels and have more control of their placement.
Reply With Quote
  #3  
Old 07-13-2010, 07:33 AM
Woosuk Jang Woosuk Jang is offline
Member
 
Join Date: Jun 2009
Posts: 8
Thanks for your suggestion...but,

I attached the bmp file showing how the info box looks like. Each line of text is now left-aligned as we wanted but the problem is that the radio buttons are shifted as well.

Is there any way to have only the text aligned to the leftmost side and have the radio buttons aligned to the right?

Thanks,
Attached Images
File Type: bmp vizinfotext.bmp (164.8 KB, 847 views)
Reply With Quote
  #4  
Old 07-15-2010, 12:43 PM
Woosuk Jang Woosuk Jang is offline
Member
 
Join Date: Jun 2009
Posts: 8
Hi,
I realize you can manually set the positions of the radio buttons. However, we have plenty of sets of texts and it will be extremely inefficient and time-consuming to set the positions of every radio button for every labels. Any way to solve this mess?

Thanks,
Reply With Quote
  #5  
Old 07-15-2010, 04:01 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Try adding the GUIs to a panel object of the vizdlg module. That will allow for more flexibility in positioning them.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Informationboxes with text snoopy78 Vizard 3 07-16-2009 10:23 AM
vizinfo text alignment hosier Vizard 2 06-22-2009 09:22 AM
Vizard tech tip: Text to Speech Jeff Vizard 1 01-15-2009 09:39 PM
Modifying Vizinfo to Support Re-parenting Tip Gladsomebeast Vizard 0 12-16-2008 05:34 PM
3d Text with Transparent Borders vjosh Vizard 3 12-01-2004 10:50 AM


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


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