<br /><br />You could try just making the GUI modal,<br />so you can’t select the Menu item again until the GUI is closed.<br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br />From: Rene Single<br /> <br /><br />Sent: Wednesday, April 18, 2007<br />8:14 AM<br /><br />To:<br />Adepters@maillist.arbortext.com<br /><br />Subject: ACL: alias hooked to a<br />menu item<br /><br /><br /><br /> <br /><br /><br /><br /><br /><br />If have an alias hooked to a menu item something like this <br /><br />menu_add ".Menu." "MenuItem" -cmd {openUI;} <br /><br /><br /><br />Where openUI is an alias looking similar to this <br /><br />alias openUI { <br /><br />$insertTag = oid_caret(); <br /><br />$insertPos = oid_caret_pos(); <br /><br />$xulState = LREClient::GetXulState(); <br /><br /># Start our GUI with a java call <br /><br /><br /><br />} <br /><br /><br /><br />This opens a java GUI <br /><br /><br /><br />Now while this Java GUI is open and I try to select the same Menu Item again, I<br />get the Error: "Reference to undefined alias: openUI <br /><br /><br /><br />Has anyone an idea why ? <br /><br />Or how I could catch this error, so I can tell the user that there's an active<br />Java window, that needs to be closed first <br /><br /><br /><br />Tia <br /><br /><br /><br />René >> To unsubscribe from the list, send an email to<br />listmanager@maillist.arbortext.com with the following in the body: unsubscribe<br />adepters - For additional information on the adepters list (how to subscribe or<br />unsubscribe etc), send an email to: listmanager@maillist.arbortext.com with the<br />following in the body: info Adepters - You may also go to forums.arbortext.com,<br />enter the Adepters folder and change your subscription options and<br />preferences.>> <br /><br /><br /><br />