WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 06-26-2015, 12:49 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
1) There is a bug that involves the panel scaling and fontsize. This will be fixed in the next Vizard release. However, there is a workaround which is actually better than setting the font size. You can apply an additional scale to the "gridPanel", which will be relative to it's inherited scale from the parent tabPanel. So instead of changing the font size, do something like the following:

Code:
gridPanel.setPanelScale(1.75)
Below is an example:

Code:
import viz
import vizdlg
import vizact

viz.go()

tabPanel = vizdlg.TabPanel()
gridPanel = vizdlg.GridPanel()
tabPanel.addPanel('TEST',gridPanel,viz.ALIGN_LEFT_TOP)
gridPanel.setPanelScale(1.75)
rowText = viz.addText('TEXT')
gridPanel.addRow([rowText])
viz.link(viz.LeftTop,tabPanel,offset=(10,-10,0))

vizact.onkeydown('1',tabPanel.setPanelScale,1)
vizact.onkeydown('2',tabPanel.setPanelScale,2)
2) Yes, only GUI objects will scale with the panel scale. If you just want to have a textured quad you could add a textured checkbox and that will scale with the panel:

Code:
quad = viz.addCheckbox()
quad.setScale([3,3,1])
quad.disable()
quad.texture(viz.addTexture('lake3.jpg'))
gridPanel.addRow([quad])

Last edited by Jeff; 06-26-2015 at 12:51 PM.
Reply With Quote
 


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
Custom-permanent tooltip tokola Vizard 2 06-09-2015 01:20 PM


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


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