Re: [Jmol-users] Drag

2015-05-07 Thread Otis Rothenberger
I was absolutely amazed when it came into existence. That’s why I wrote the note about a year ago. It seemed too good to be true! Otis > On May 7, 2015, at 5:27 PM, Robert Hanson wrote: > > Ah, yes, > > set picking dragMolecule > > is very nice. > > left-drag --> move molecules > > set

Re: [Jmol-users] Drag

2015-05-07 Thread Robert Hanson
Ah, yes, set picking dragMolecule is very nice. left-drag --> move molecules *set picking dragmolecule* left-drag --> rotate molecule *set allowrotateselectedunbind "_dragAtom" // was left+dragunbind "_rotateSelected" // was alt+left+dragbind "left+drag" _rotateSelected // now

Re: [Jmol-users] Drag

2015-05-07 Thread Otis Rothenberger
Bob, I have not tried this yet, but just so I understand: 1) There is no dragmolecule any longer? 2) If I have three molecules in the window, the approach below requires exclusive selection of the clicked model to be dragselected? This is not a big deal, but dragmolecule covered you on this po

Re: [Jmol-users] Drag

2015-05-07 Thread Robert Hanson
Otis, I think what you want is: left-drag --> move atoms *set picking dragselected* left-drag --> rotate molecule *set allowrotateselectedunbind "_dragAtom" // was left+dragunbind "_rotateSelected" // was alt+left+dragbind "left+drag" _rotateSelected // now left+drag* clear all t

Re: [Jmol-users] Drag/Drop

2014-07-12 Thread Robert Hanson
Tip: ​If you ever have to go into JSmol.min.js, just copy js/JSmol.full.js to JSmol.min.js and look at that instead. -- ___ Jmol-users mailing list Jmol-users@lists.sourceforge.ne

Re: [Jmol-users] Drag/Drop

2014-07-07 Thread Otis Rothenberger
Bob, No, I changed it in JSmolCore. I assume this is the related code in JSmol.min.js (below), but I'm afraid I cannot follow the compressed code. This is not a crucial issue. I can wait for a version change. a.$appEvent(c,"appletdiv","drop",function(d){d=d.originalEvent;d.stopPropagation();d.p

Re: [Jmol-users] Drag/Drop

2014-07-07 Thread Robert Hanson
It was just that the variables "ev" and "e" were messed up. Sure you are working in JSmol.min.js? or JSmol.min.nojq.js? -- Open source business process management suite built on Java and Eclipse Turn processes into busines

Re: [Jmol-users] Drag/Drop

2014-07-03 Thread Otis Rothenberger
Bob, In JSmolCore I find the code at the end of this note. I made the following change: Jmol.$appEvent(me, "appletdiv", "drop", function(e) { var ev = e.originalEvent; ev.stopPropagation(); ev.preventDefault(); This did not fix the problem. Again, I'm trying to double check cache issues when I

Re: [Jmol-users] Drag/Drop

2014-07-02 Thread Robert Hanson
Yes, HTML5 applet only. If you want to fix it, look for something like this in JSmol.min.js or JSmolCore.js: Jmol.$appEvent(me, "appletdiv", "drop", function(e) { var e = e.originalEvent; e.stopPropagation(); e.preventDefault(); That should read:

Re: [Jmol-users] Drag and drop into signed applet

2010-04-14 Thread Robert Hanson
yes, but there's a bug there that I will fix this afternoon. set pickingstyle dragSelected set allowRotateSelected set picking model now clicking on an atom toggles it's model on or off. Pressing the ALT key shows the selected set. Dragging with the ALT key press does a rotation of the selected

Re: [Jmol-users] Drag and drop into signed applet

2010-04-14 Thread Jeff Hansen
All worked fine for me, including drag and drop of multiple files from multiple folders in Finder. On Firefox 3.6 and OS X 10.6.3. *** Jeff Hansen Department of Chemistry and Biochemistry DePauw University 602 S. College Ave. Greencastle, IN 46135 jha

Re: [Jmol-users] Drag and drop into signed applet

2010-04-14 Thread Philip Bays
Bob: On the mac I can drop either image or the link onto Jmol successfully in Safari. However, in Firefox I can only drop the link. I get an error message with either of the images. ("unrecognized file format for file string") Phil On Apr 14, 2010, at 12:59 PM, Robert Hanson wrote: > I

Re: [Jmol-users] Drag and drop into signed applet

2010-04-14 Thread Jeff Hansen
Success!! I was able to drag and drop one or multiple files from the Finder to the applet. I was even able to drag and drop files from different folders. Question: Once the two structure are loaded, is there a simple way to select one and either translate it or rotate it while not changing t

Re: [Jmol-users] Drag and drop into signed applet

2010-04-14 Thread Robert Hanson
I JUST updated again -- this time I have all functions working in MSIE and Mozilla -- drop image with link, drop image without link, drop link drop one file from hard drive drop multiple files from hard drive So do please test that with the Mac. Be sure to close and reopen browser Bob On We

Re: [Jmol-users] Drag and drop into signed applet

2010-04-14 Thread Robert Hanson
OK, I got it working in FF. Jeff, can you try that again and report back what the error message is saying? Close and reopen your browser -- I updated all files. http://chemapps.stolaf.edu/jmol/docs/examples-11/drop.htm On Wed, Apr 14, 2010 at 10:25 AM, Jeff Hansen wrote: > All three of the li

Re: [Jmol-users] Drag and drop into signed applet

2010-04-14 Thread Jeff Hansen
All three of the links on that page worked for me on Mac OS X 10.6.3 and Safari 4.0.4. However, when I tried to drag a pdb file from a Finder window, I got a FileNotFoundException. *** Jeff Hansen Department of Chemistry and Biochemistry DePauw Unive