Control the structure window from the SMILES field of the calling window using this code.
...
struct.structure = structure(); /* create graphics list;assign it to struct.structure */
window(struct,open);
list_view2(struct.structure,-1,-1,-1,0);
Finally, set the user attributes in the SMILES field of the calling window to 'Calculate' (right click SMILES field to get Define Field Dialogue, click Attributes and select Calculate). With 'Calculate' on the field trigger for SMILES will be executed and the
structure for the new SMILES will be displayed.