WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-17-2014, 06:13 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
By default the visibility of the dialog components are turned off unless added to a TabPanel. When using a task function, you can use the show method to display the dialog and wait for a button event. The TickerDialog section has a short example. The following turns the visibility of the components on in a standard panel:

Code:
import viz
import vizdlg
viz.go()

# ticker dialog and standard panel
s1 = vizdlg.TickerDialog(label='Circle',units='pixels',range=(1,5,1),editable=True,border=False,background=False,margin=0)
s2 = vizdlg.TickerDialog(label='Crosshair',units='pixels',range=(1,5,1),editable=True,border=False,background=False,margin=0)
s3 = vizdlg.TickerDialog(label='Border',units='pixels',range=(1,5,1),editable=True,border=False,background=False,margin=0)
s1.visible(viz.ON)
s2.visible(viz.ON)
s3.visible(viz.ON)

row = vizdlg.Panel(layout=vizdlg.LAYOUT_HORZ_BOTTOM,border=False,background=False,margin=0)
is1 = row.addItem(s1)
is2 = row.addItem(s2)
is3 = row.addItem(s3)

myPanel = vizdlg.Panel(align=vizdlg.ALIGN_CENTER)
myPanel.addItem(row)
viz.link(viz.CenterCenter, myPanel)
Thanks for the documentation comments and suggestions. Regarding the vizconfig docs, I'll make a note to add an updated image and some examples to the installation.
Reply With Quote
 

Tags
gridpanel, menu, panel, tabpanel, tickerdialog


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
artoolkit no webcam showing vrmdl Vizard 3 03-10-2014 11:01 AM
Showing another program in a virtual world Frank Verberne Vizard 3 01-16-2013 10:26 AM
Models showing up Elizabeth S Vizard 9 09-06-2006 06:11 PM
V8 HMD showing snow pattern bailenson Vizard 3 06-22-2006 10:00 AM
running scripts without the IDE showing hotspur1 Vizard 7 10-30-2003 10:36 AM


All times are GMT -7. The time now is 05:06 AM.


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