WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-11-2015, 05:18 AM
mape2k mape2k is offline
Member
 
Join Date: Mar 2013
Posts: 60
Draw order of vizinfo Panel

Hey,

how can I change the draw order of a vizinfo panel? I have a normal vizdlg panel in the background and want to overlay it with a vizinfo panel to get some participant information.

The vizinfo panel is always hidden behind the vizdlg panel. Even if I hide the background panel (alpha = 0), I cannot use the mouse or keyboard to input anything into the vizinfo panel.

Cheers,
Johannes
Reply With Quote
  #2  
Old 10-06-2015, 03:24 AM
mape2k mape2k is offline
Member
 
Join Date: Mar 2013
Posts: 60
Nobody knows a solution?
Reply With Quote
  #3  
Old 10-08-2015, 03:59 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,461
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

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


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


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