<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
the documentation for FCDisplayShapeDialog says:<br>
<dl class="section return">
<dt>"Returns 0 if the cancel button was pressed. Otherwise, the
selected shape definition ID."</dt>
</dl>
<p>The is currently not the case. It always returns the
initialization value when pressing cancel.</p>
<p>So when I have:</p>
<p>local retvalue=finenv.UI():DisplayShapeDialog(4) --Open the
dialog shape 4 selected<br>
</p>
Pressing cancel returns 4 instead of 0.<br>
<br>
This means: pre-selecting a shape is not possible, if it is also ok
for the user to press cancel.<br>
<br>
Best,<br>
Jan<br>
<br>
<br>
<br>
</body>
</html>