#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Nobody knows a solution?
|
#3
|
|||
|
|||
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) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 |