Re: [Jmol-users] Keeping track of all jmol features?

2007-06-02 Thread Bob Hanson
I have added inline help capability to the Jmol application for 11.1.46.

help

or

help   #targets that particular command

or just

help#does a search


Bob




Thank you, Nico!

Nicolas Vervelle wrote:

> Bob Hanson a écrit :
>
>> This is about as close as we are going to come to a Rasmol-like 
>> inline help, and I would argue that it is far superior, at least for 
>> the applet. (If someone could show how the application could display 
>> HTML from a web page -- perhaps open a browser, for instance --  we 
>> could implement this in the application easily enough. In 11.1.43 
>> "help" is ignored in the application, but in 11.1.45 it will at least 
>> give the URL.)
>>   
>
> Starting from Java 6, it's easy to open the default browser with an URL.
> See java.awt.Desktop.browse()
> Before Java 6, it's a mess to open an HTML web page.
>
> I suggest using the Java 6 method, even if only Java 6 users will see 
> it working.
>
> Nico



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] questions

2007-06-02 Thread Bob Hanson
rspinney wrote:

>I have a couple of questions for Bob. (I am using 11.1.44.)
>
>1) I am not clear if frame (or model) next or previous make a call to
>animFrameCallback. I have a jmolSetCallback linked to animFrameCallback, and
>it works fine for model play, pause and resume (which will execute a script
>dependent on the model number) but it does not work when model next is used.
>The display moves to the next model, but the scripts are never called.
>Should model next (or previous) call animFrameCallback?
>
>  
>
I'm not observing this problem -- next and prev go through precisely the 
same operations, and the callback doesn't come from them. (It's actually 
a "frame change callback" that has nothing really to do specifically 
with "animation.") So I'd be surprised if this is the case. Note that if 
you are at the end of the range and you issue a frame change that does 
not have any effect, no callback is made.

>2) Did you implement the change to animFrameCallback "isrunning" to indicate
>the direct the animation is playing (i.e. values of -1 running backwards, 0
>for stopped, and 1 for running forwards)?
>
>  
>
I have checked in changes for 11.1.45 that add two more parameters to 
the frame callback:

function animFrameCallback(frameNo, fileNo, modelNo, firstNo, lastNo, 
isAnimationRunning, animationDirection, currentDirection)

animationDirection is what changes with "animation direction -1" or 
"animation direction +1"
currentDirection is what changes with "anim playrev" and when the 
animation starts going backward in "anim mode palindrome"

so the PRODUCT of these two numbers indicates the "true" direction of 
the animation.

Note that firstNo and lastNo are numbers that encode the file and model 
as "file*100+model"

>3) There is still a bug with set picking draw. If you shift-left-click on a
>vertex of the arrow to move it, the entire arrow moves rather than the one
>vertex.
>
>  
>
That's not a bug. "SHIFT" does just that -- shifts the arrow around; 
"ALT" does the altering of the shape. So use alt-left-click if you want 
to alter the shape of the arrow.

Bob

>Thanks, Rick
>
>
>
>-
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>___
>Jmol-users mailing list
>Jmol-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users