MView applet with a menu bar

User 348e44f632

19-03-2007 16:45:13

Hi,





I was wondering what would be the most expedient way for me to add a menu bar to an MView applet. My goal is to be able to embed a 1-structure non-editable viewer in a web page; something like this:


mview_begin(mavrinURL, Width, Height);


mview_param("rows", 1);


mview_param("cold", 1);


mview_param("molbg", "#ffffff");


mview_param("editable", 0);


mview_param("importConv", "-a");


mview_param("importEnabled", "false");


mview_param("draggable", "false");


msketch_param("mol", "c1ccccc1");


mview_end();





but give the users access to, for example, property calculators on the Tools menu.


I am using the latest Marvin and MarvinBeans (4.1.6)





Thanks for your help.


Maya

ChemAxon 7c2d26e5cf

20-03-2007 22:34:44

Dear Maya,


The MView applet has not got own menubar (only the detached viewer has got one). Thus, the toolbar menu is available only in the detached viewer.


We are working hard on menu customization. After then, the menu will be fully customizable (add/remove menu items). So, it will solve a lot of problem.