Hi there!
Is it me or is it DO doing something unexpected here?
This dialog-test will make DO hang/freeze when pressing the "Close" button.
I'm on the latest 12.5.1 beta.
Thanks! o)
<?xml version="1.0"?>
<button backcol="none" display="label" textcol="none">
<label>ISEFilter</label>
<icon1>#newcommand</icon1>
<function type="script">
<instruction>@script JScript</instruction>
<instruction>function OnClick(data) {</instruction>
<instruction> var Dlg = DOpus.Dlg;</instruction>
<instruction> Dlg.window = data.func.sourcetab;</instruction>
<instruction> Dlg.template = "ISEFilter_dlg";</instruction>
<instruction> Dlg.detach = true;</instruction>
<instruction> Dlg.Show(); </instruction>
<instruction> do {</instruction>
<instruction> var Msg = Dlg.GetMsg();</instruction>
<instruction> DOpus.Output("Msg:" + Msg.event);</instruction>
<instruction> } while (Msg);</instruction>
<instruction> DOpus.Output("Return code = " + Dlg.result);</instruction>
<instruction>}</instruction>
<instruction>==SCRIPT RESOURCES</instruction>
<instruction><resources></instruction>
<instruction> <resource name="ISEFilter_dlg" type="dialog"></instruction>
<instruction> <dialog fontsize="8" height="142" lang="" width="352"></instruction>
<instruction> <control halign="left" height="12" name="Filter_tbx" title="Edit Control" type="edit" width="292" x="28" y="24" /></instruction>
<instruction> <control close="0" height="14" name="button1" title="Close" type="button" width="50" x="282" y="108" /></instruction>
<instruction> </dialog></instruction>
<instruction> </resource></instruction>
<instruction></resources></instruction>
</function>
</button>