Hi Linden, What you can do is something like:- BUTTON-SELECTED MOVE-OBJECT-HANDLE PB2 MAINHWIN CALLOUT "DISABLEEXITBUTTON" 0 $NULL in your dialog. Then in the COBOL code:- invoke button "fromHandle" using mainhwin returning ws-button invoke ws-button "disable" invoke ws-button "destroyproxy" returning ws-button You create an instance of the button from the Windows handle and then when finished with the object you issue a destroyproxy when finalizes the instance of the button but not the underlying GUI object. Regards David
↧