I have three aligned pdb files loaded in an applet, and check boxes
that control the display of each one (on or off). When the page
loads, I have labels displayed on one of the models, and a separate
checkbox to turn the labels off, if desired.
Although the labels are attached to one model by necessity, the
situation really calls for labels that can be displayed independently
of which model is showing. (If the user turns off the labeled model,
the labels turn off automatically, because the model is not displayed.)
The simplest solution would be to be able to display the labels of
something that is not visible, but I cannot see a way to do this in
Jmol.
If I have separate label checkboxes for each model, it's a bit
cumbersome in the user interface, but beyond that, it becomes
necessary to control the state of each checkbox from nearly every
other checkbox, and this is not a situation that can be resolved
using the built in Master-Group checkbox code in Jmol.js.
(In fact, I modified the Jmol.js code to allow the label checkbox to
be unchecked without unchecking the master checkbox for displaying
the model. That's because I need a one-way relationship between just
two checkboxes).
Any ideas?
Frieda
///////////////////////////////////////////
Frieda Reichsman, PhD
Molecules in Motion
Interactive Molecular Structures
http://www.moleculesinmotion.com
///////////////////////////////////////////
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users