done_dialog


(done_dialog  [ intResult ] )

This function closes the active DCL dialog box and returns the X,Y position of the dialog; intResult (default is 0 for Cancel, 1 for OK) is returned by (start_dialog) function.

Arguments

intResult  (optionally) integer to be returned from (start_dialog) function, like 1 for OK, 0 for Cancel (defaults to 0/1)

Return

the last position of the dialog as (x y) list

Example

(done_dialog 10)
the returned 10 value can be used by the Lisp code to identify how the dialog was closed

Remarks

this function can only be called from inside a dialog callback !
see (start_dialog) function



©  Bricsys NV. All rights reserved.