Marvin view applet

User 3d7989d1a7

02-11-2007 00:55:55

I am trying to generate a molecular table. I have looked through your examples, particularly 2.6. However, I am having difficulty with the layout parameter. It appears to me that vertical and horizontal are reversed, for one thing. And I do not see that the param:M makes any difference in the size of the molecular display once the cell sizes are defined.





Are there bugs that I should be aware of, or is it just me. Code attached:

ChemAxon e500b51457

02-11-2007 21:07:43

Dear Philip,





I modified a bit your code example. Let’ s see what happens if you change the fill parameter of the component that contains the molecule.


The fill parameter is set to none "n" for the molecule:


mview_param("layout",":2:1:M:1:0:1:1:c:n:1:1:L:0:0:1:1:c:v:0:1"),


so the component with the molecule keeps its size: 80x80.


If you set the fill parameter to both "b": (mview_param("layout",":2:1:M:1:0:1:1:c:b:1:1:L:0:0:1:1:c:v:0:1")


the component is stretched both vertically and horizontally loosing the size setting.


If you set the fill parameter to horizontal "h": mview_param("layout",":2:1:M:1:0:1:1:c:h:1:1:L:0:0:1:1:c:v:0:1")


the component is stretched horizontally but keeps its height setting (80).


If you change parameter to vertical "v": mview_param("layout",":2:1:M:1:0:1:1:c:v:1:1:L:0:0:1:1:c:v:0:1")


the component is stretched vertically but keeps its width setting (80).


I hope this helps to understand how the fill parameter works.





Helpful links:


http://www.chemaxon.com/marvin/doc/dev/viewman.html#advanced.param


http://www.chemaxon.com/marvin/examples/applets/example-view2.2.html


http://www.chemaxon.com/marvin/examples/applets/example-view2.3.html





Regards,


Erika.