Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-15 Thread P . Canepa
@lists.sourceforge.net Subject: Re: [Jmol-users] problem setting element colors with JmolColorPickerBox Actually it would not be hard to make an extended version of the ColorPickerBox that doesn't take a script but a name of a function which would generate the scriptstr with $COLOR$ in the appropriate

Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-14 Thread P . Canepa
Subject: Re: [Jmol-users] problem setting element colorswith JmolColorPickerBox Piero, Please include the part where you call the ColorPickerBox. You are supposed to pass the ColorPickerBox the string, which in the formulation you provide may not have the necessary space before

Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-14 Thread Jonathan Gutow
Thanks Bob. I'll look at that. Jonathan On Jul 14, 2010, at 11:20 AM, jmol-users-requ...@lists.sourceforge.net wrote: Date: Tue, 13 Jul 2010 17:16:15 -0500 From: Robert Hanson hans...@stolaf.edu Subject: Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-13 Thread Angel Herráez
Piero, I don't get the whole picture of your problem, but you have select name=colourbyElementList id=colourbyElementList size=1 class= onchange=elementSelected(value) var scriptColor = ; function elementSelected(element){ scriptColor = ' color + element + $COLOR$'; return

Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-13 Thread P . Canepa
13, 2010 2:08 PM To: jmol-users@lists.sourceforge.net Subject: Re: [Jmol-users] problem setting element colors with JmolColorPickerBox Piero, I don't get the whole picture of your problem, but you have select name=colourbyElementList id=colourbyElementList size=1 class= onchange=elementSelected

Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-13 Thread Angel Herráez
I still think you are mixing javascript with JmolScript. The elementSelected() function is called by onchange of the select control El 13 Jul 2010 a las 14:59, P.Canepa escribió: yes u pass it to Jmol with strApp+=JmolColorPickerBox( + scriptColor + ,[255,255,255]); \n

Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-13 Thread Jonathan Gutow
-requ...@lists.sourceforge.net wrote: Date: Tue, 13 Jul 2010 11:44:57 +0100 From: P.Canepa pc...@kent.ac.uk Subject: [Jmol-users] problem setting element colors with JmolColorPickerBox To: jmol-users@lists.sourceforge.net jmol-users@lists.sourceforge.net Message-ID

Re: [Jmol-users] problem setting element colors with JmolColorPickerBox

2010-07-13 Thread Robert Hanson
: Date: Tue, 13 Jul 2010 11:44:57 +0100 From: P.Canepa pc...@kent.ac.uk Subject: [Jmol-users] problem setting element colors with JmolColorPickerBox To: jmol-users@lists.sourceforge.net jmol-users@lists.sourceforge.net Message-ID: 42054e10c02cd44d81ef510077a30a073829ed4