Matlab Unit report msgbox window
Posted: 11 May 2017, 08:14
If I want to add a msgbox or dialog, how to put their windows on top of all windows when called?
Discussions about use and implementation of the CAPE-OPEN standard
https://forum.colan.org/
Thank you very much Jasper, I know how to deal with it.jasper wrote:In CAPE-OPEN one should not use message boxes during unit operation calculation.
Having said that (as the same applies for the edit dialog), normally a message box or any modal dialog appears on top naturally. I suppose you are running in AspenPlus? In this case the actual simulator is not the same executable as the front-end application (apmain.exe, apwin.exe). To get a dialog launched from apmain.exe on top of apwin.exe you will have to apply some tricks, which go beyond the scope of the Matlab unit operation.
Can you not use the message logging system instead?
http://amsterchem.com/matlabunitophelp. ... essage.htm
If you need a response (e.g. yes,no) an option perhaps is to use a boolean input parameter.