[JW Lua] FCDisplayShapeDialog only returns 0 on 'Cancel' if initialized with 0
Jan Angermüller
jan at angermueller.com
Mon Apr 23 10:05:55 CEST 2018
Jari,
the documentation for FCDisplayShapeDialog says:
"Returns 0 if the cancel button was pressed. Otherwise, the selected
shape definition ID."
The is currently not the case. It always returns the initialization
value when pressing cancel.
So when I have:
local retvalue=finenv.UI():DisplayShapeDialog(4) --Open the dialog
shape 4 selected
Pressing cancel returns 4 instead of 0.
This means: pre-selecting a shape is not possible, if it is also ok for
the user to press cancel.
Best,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20180423/aaacb0eb/attachment.htm>
More information about the JWLua
mailing list