Hi Ben

just look at the init.js file 
(http://www.carto.net/papers/svg/gui/selectionlist/init.js).
you have to define an array of elements:

var fruits = ["Oranges","Apples","Bananas","Pears"];

then you create a new selectionlist with the following parameters:

selFruits = new selectionList("fruits","fruits",fruits,170,50,50,
selBoxCellHeight,selBoxTextpadding,7,selBoxtextStyles,selBoxStyles,
selBoxScrollbarStyles,selBoxSmallrectStyles,selBoxHighlightStyles,
selBoxTriangleStyles,3,false,true,myFruitsResult);

Hope it helps.
Ciao
Olaf

Ben wrote:
> 
> 
> Hi Pascal
> 
> I'd just seen you post and was in middle of writing to you when this
> came over. I apologise, I would speak to you in french but it
> certainly isn't good enough! :)
> 
> Basically, using the example on the carto website I have tried to
> create a selectionlist, but without being able to see the init.js
> file for that selectionlist I then have tried to follow the code on
> the webpage.
> 
> Problem with this is that I'm running into errors (particulary
> regarding declaring an array for the selectionlist to use) and could
> really do with a very simple working SVG example.
> 
> With all my coding I tend to look at examples, play with them and see
> the effects. In this case I've done that with other GUI libraries and
> it's worked out perfectly.
> 
> Ben
> 
> 

-- 
Olaf Schnabel
ETH Zurich
Institute of Cartography
CH-8093 Zurich
Switzerland

tel:    ++41 44 633 3031
fax:    ++41 44 633 1153
e-mail: [EMAIL PROTECTED]
www1:   http://www.ika.ethz.ch/schnabel
www2:   http://www.e-cartouche.ch


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to