Gz:lspinputbox

提供:GizmoLabs - だいたい CAD LISP なサイト
2016年5月10日 (火) 21:34時点におけるGizmon (トーク | 投稿記録)による版
構文
(Gz:inputbox main msg1)


機能
インプットダイアログを表示する。


引数
  • main … ダイアログのタイトル
  • msg1 … ダイアログボックスに表示するメッセージの文字列または文字列のリスト。


戻り値
文字列、キャンセルだったら nil


サンプル
(setq result (Gz:inputbox "LspRetryCancel メッセージボックス" "メッセージ1" ))
(setq result (Gz:inputbox "LspRetryCancel メッセージボックス" '("メッセージ1" "メッセージ2" "メッセージ3") ))


(defun gz_msgbox_test (/ result msg1 lst1)
  ; gz_msgbox 関連関数のテスト
  (setq msg1 '("メッセージ1" "メッセージ2" "メッセージ3")
        lst1 '("aaa" "AA" "あああ" "ぁぁぁ" "1234567890"))

  (setq result (Gz:OkCancel "OK-Cancel メッセージボックス" msg1))
  (alert (if (= T result) "OK" "キャンセル"))
  (setq result (Gz:YesNo "Yes-No メッセージボックス" msg1 ))
  (alert (if (= T result) "Yes" "No"))
  (setq result (Gz:okonly "OK Only メッセージボックス" msg1 ))
  (alert (if (= T result) "OK" "エラー"))
  (setq result (Gz:RetryCancel "Retry-Cancel メッセージボックス" msg1 ))
  (alert (if (= T result) "リトライ" "キャンセル"))
  (setq result (Gz:GetPass  "GetPass メッセージボックス" msg1 ))
  (alert (strcat "パスワードは" result))
  (setq result (Gz:inputbox "インプットボックス" msg1 ))
  (alert (if (= nil result) "キャンセル" result))
  (setq result (Gz:ComboBox "コンボボックス" msg1 lst1))
  (alert (if (= nil result) ("キャンセル") result))
  (setq result (Gz:ListBox "リストボックス" msg1 lst1))
  (alert (if (= nil result) ("キャンセル") result))
  (setq result (Gz:ListBoxMulti "複数選択リストボックス" msg1 lst1))
  (alert (if (= nil result) ("キャンセル") result))
  (princ)
)



関連事項