WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-17-2008, 04:43 PM
south_bank south_bank is offline
Member
 
Join Date: May 2008
Location: Wolverhampton
Posts: 11
Custom Drop-Down Menus and Sliders

Hi,

I was wondering if it is possible to customise the entire elements of sliders and drop down menus in Vizard. For my project I require a custom drop down menu, of Red colour rather than blue, and a slider with a custom bar and selector, as I need to attach a texture of multiple colours to the slider bar and I need a yellow selector.

If it is possible it's probably really obvious, but I can't find it anywhere so any help would be much appreciated!

Thanks
Reply With Quote
  #2  
Old 05-19-2008, 02:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Sure, here is a script that shows how to customize the appearance of a drop-down menu and a slider:
Code:
import viz
viz.go()

droplist = viz.addDropList(pos=(0.5,0.5,0))
droplist.addItems(['one','two','three'])

droplist.color(viz.RED,viz.DROPLIST_BORDER)
droplist.color(viz.BLUE,viz.DROPLIST_BACK)
droplist.color(viz.YELLOW,viz.DROPLIST_TEXT)
droplist.color(viz.PURPLE,viz.DROPLIST_BACK_SEL)
droplist.color(viz.WHITE,viz.DROPLIST_TEXT_SEL)


slider = viz.addSlider(pos=(0.5,0.1,0))

slider.barpicture('ball.jpg')
slider.tickpicture('gb_noise.jpg')
Reply With Quote
  #3  
Old 05-20-2008, 04:27 AM
south_bank south_bank is offline
Member
 
Join Date: May 2008
Location: Wolverhampton
Posts: 11
I knew it was something simple . Thanks a lot, again for the quick reply, it's really appreciated as I'm in the middle of my dissertation at the moment!
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


All times are GMT -7. The time now is 02:01 AM.


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