WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-08-2015, 02:59 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could change the vizdlg panel's drawOrder to render the panel above or below:

Code:
'''
Press 1 to set vizdlg panel above
Press 2 to set vizdlg panel below
'''

import viz
import vizinfo
import vizdlg
import vizact

viz.go()

myPanel = vizdlg.Panel(drawOrder=-10)
label = myPanel.addItem(viz.addText('This is the vizdlg panel'))
textBox_panel = myPanel.addItem(viz.addTextbox())
viz.link(viz.CenterCenter,myPanel,offset=(-100,50,0))

info = vizinfo.InfoPanel(title='This is the vizinfo panel',align=viz.ALIGN_CENTER_CENTER,icon=False)
textBox_info = info.addLabelItem('TextBox',viz.addTextbox())

def setPanelAbove():
	myPanel.drawOrder(10)

def setPanelBelow():
	myPanel.drawOrder(-10)
	
vizact.onkeydown('1',setPanelAbove)
vizact.onkeydown('2',setPanelBelow)
Reply With Quote
Reply


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
vizinfo, vizdlg related questions mape2k Vizard 4 07-27-2015 03:46 AM
check user input using vizinfo panel armo Vizard 0 01-22-2015 02:05 AM
how to draw a single point aaaa Vizard 2 11-17-2014 01:26 AM
one panel over all windows Andy Vizard 5 04-11-2012 09:24 AM
Problem Vizdlg panel draw order Chapre Vizard 1 05-17-2011 02:29 PM


All times are GMT -7. The time now is 10:08 AM.


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