Fluent Scheme 中提供了一些对话框相关的 procedure,包括
;; (cx-error-dialog msg)
;;
;; (cx-file-dialog pattern filter default apply-cb unknown-cb)
;;
;; cx-dialog-done
;; cx-multiple-file-dialog
;; cx-select-dialog
;; cx-prompt-dialog
;; cx-working-dialog
;; cx-yes-no-dialog
;; cx-ok-cancel-dialog
;; cx-info-dialog
;; cx-warning-dialog
;; append-file-dialog
;; write-file-dialog
已经知道或部分解析到用法的有 cx-error-dialog 和 cx-file-dialog。
cx-error-dialog 主要用于显示错误信息,中断 scheme 代码的执行,例如
(if (> i MAX)
(cx-error-dialog "Exceed the maximum value.")
)
显示效果的话,在命令中执行显示错误提示信息,在 GUI 中调用的话还会弹出错误对话框。
Error: Specified wrong coordinates
Error Object: #f