Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Michael Evans
Guess I was feeling lazy when I wrote menuRemoveItem...it's an easy fix. The array.splice(indexToStart, numberOfElements) function is perfect for it. Now fixed; see the new method below. menuRemoveItem: function(menu, index) { if(index >= 0 && index < menu.items.length) menu.items.splice(index, 1)

[Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Greeves, Nick
This is a good point. Nothing I try brings up the menu on iPad 2. Works on Mac OS. All the best Nick -- 3D Organic Animations http://www.chemtube3d.com Tel: +44 (0)151-794-3506 (3500 secretary) On 19 Dec 2012, at 21:36, jmol-users-requ...@lists.sourceforge.net

Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Michael Evans
Great question, Phil...perhaps a left-click on the JSmol frank a la Jmol would work? --- Michael Evans Organic Chemistry Graduate Student, Moore Group University of Illinois, Urbana-Champaign On Wed, Dec 19, 2012 at 3:34 PM, Philip Bays wrote: > How does this work on a tablet or my new iPhone

Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Philip Bays
How does this work on a tablet or my new iPhone where there is not a keyboard to activate the menu? Philip Bays Saint Mary's College Notre Dame, IN 46556 Sent from my iPhone On Dec 19, 2012, at 4:05 PM, Robert Hanson wrote: > Wow, this is great! Almost there, I think. > > > On Wed, Dec 1

Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Robert Hanson
Wow, this is great! Almost there, I think. On Wed, Dec 19, 2012 at 12:48 PM, Michael Evans wrote: > Bob et al., > Progress has been made on a popup menu for JSmol. I've implemented > PopupMenu, MenuItem, CheckboxMenuItem, and RadioButtonMenuItem, among other > things. Check it out: > > http://ww

Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Robert Hanson
Michael, I've uploaded files to chemapps.stolaf.edu. The Java side is all done -- when you go to the page using &debugcode: http://chemapps.stolaf.edu/jmol/jsmol/test2.htm?USE=HTML5&debugcode then it will use the modifications I have put in place, and right-clicking on the applet or clicking the

[Jmol-users] set picking DRAGSELECTED

2012-12-19 Thread Otis Rothenberger
Bob, In HTML5 JSmol, I see set picking DRAGSELECTED as working for translation, but shift-drag zooms rather than rotates. This is on Mac FF, Chrome, and Safari. Otis -- Otis Rothenberger o...@chemagic.com http://chemagic.com -

Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Michael Evans
Bob et al., Progress has been made on a popup menu for JSmol. I've implemented PopupMenu, MenuItem, CheckboxMenuItem, and RadioButtonMenuItem, among other things. Check it out: http://www.metallacycle.com/play/netmol/tests/popupMenu/jmolPopupMenu.js The demo is still functional as well: http://w

Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Michael Evans
Thanks, Bob. I got the sense objects would be the way to go. Working on this this morning. Stay tuned! --- Michael Evans Organic Chemistry Graduate Student, Moore Group University of Illinois, Urbana-Champaign On Wed, Dec 19, 2012 at 8:56 AM, Robert Hanson wrote: > OK, Michael, here's what we

Re: [Jmol-users] Jmol | Context Menu for JSmol

2012-12-19 Thread Robert Hanson
OK, Michael, here's what we actually need from the JavaScript side. From org.jmol.awt2d.JSPopup: //TODO: jQuery menu actions, entry, and exit need to come back here // to execute checkMenuClick, checkMenuFocus, and checkBoxStateChanged // (on mouse up) checkMenuClick(e.getSource