In this example the structures of the molecule table can be altered with MarvinSketch, and transferred back to the table.
The structrures being in the cells of the molecule table can be altered with MarvinSketch after the cell is double-clicked with the mouse. The following parameter makes this function enabled:
mview_param("editable", 2)
In this usage MarvinSketch has an additional button on the General toolbar called Transfer button. The button can be used to transfer the altered molecule back to the original environment. Before transfering, a confirmation dialog is displayed by using the following parameter:
mview_param("confirmTransfer", "true")
The icon and the text of the Transfer button can optionally be customized. In this example we have replaced the default icon to the icon of MarvinView, and the text is also customized.
mview_param("transferButtonIcon", "mview24.png") mview_param("transferButtonText", "Transfer molecule back to table")
The next example shows how to create an advanced molecule table.