Marvin disable and background color from Javascript

User 1033cfd7dc

28-10-2007 20:46:35

Dear Support,





I'd like to do the following things with MarvinSketch and MarvinView in real-time with Javascript:





- disable the full applet,


- change the background color.





Is there any way to do these things?





Thanks in advance!

ChemAxon 7c2d26e5cf

30-10-2007 19:30:12

Since there are no functions for control these properties from JMSketch/JMView API, you can not change them from JavaScript.


But you can define background color from applet paramater.


By the way, you would like to change the color of the canvas or the toolbar ones?


Please see the description of molbg and background parameters.

User 1033cfd7dc

30-10-2007 19:57:52

Tamas wrote:
But you can define background color from applet paramater.
Yes, I know this.
Tamas wrote:
By the way, you would like to change the color of the canvas or the toolbar ones?
The canvas. If a user deselect a database, I'd like to change the background of Marvins according to selection to indicate the change.

ChemAxon 7c2d26e5cf

30-10-2007 20:11:02

We will consider to implement the required features.