「Gz:lspgetpass」の版間の差分
(ページの作成:「{{GZLIB}} ; 構文 : (LspGetPass ''msg1'' ''main'') ; 機能 : パスワードダイアログを表示する。 ; 引数 :* msg1 … 警告ボックスに表示す...」) |
細編集の要約なし |
||
| 54行目: | 54行目: | ||
* | * | ||
[[Category: | |||
[[Category:Gz-Lib]] | |||
2015年7月29日 (水) 07:32時点における版
- 構文
- (LspGetPass msg1 main)
- 機能
- パスワードダイアログを表示する。
- 引数
-
- msg1 … 警告ボックスに表示する文字列。
- main … ダイアログのタイトル
- 戻り値
- パスワードの文字列、キャンセルだったら nil
- サンプル
(setq result (LspGetPass "メッセージ1" "LspRetryCancel メッセージボックス"))
(setq result (LspGetPass '("メッセージ1" "メッセージ2" "メッセージ3") "LspRetryCancel メッセージボックス"))
(defun gz_msgboxs_sample (/ result)
; gz_msgbox 関連の表示サンプル
(setq result (lspOkCancel '("メッセージ1" "メッセージ2" "メッセージ3") "OK-Cancel メッセージボックス"))
(alert (if (= T result) "OK" "キャンセル"))
(setq result (lspYesNo '("メッセージ1" "メッセージ2" "メッセージ3") "Yes-No メッセージボックス"))
(alert (if (= T result) "Yes" "No"))
(setq result (lspokonly '("メッセージ1" "メッセージ2" "メッセージ3") "OK Only メッセージボックス"))
(alert (if (= T result) "OK" "エラー"))
(setq result (lspRetryCancel '("メッセージ1" "メッセージ2" "メッセージ3") "Retry-Cancel メッセージボックス"))
(alert (if (= T result) "リトライ" "キャンセル"))
(setq result (lspGetPass '("メッセージ1" "メッセージ2" "メッセージ3") "GetPass メッセージボックス"))
(alert (strcat "パスワードは" result))
(setq result (lspInputBox '("メッセージ1" "メッセージ2" "メッセージ3") "インプットボックス"))
(alert (if (= nil result) "キャンセル" result))
(setq result (lspComboBox '("メッセージ1" "メッセージ2" "メッセージ\t3") "コンボボックス" '("aaa" "AA" "あああ" "ぁぁぁ" "12345\t67890")))
(alert (if (= nil result) ("キャンセル") result))
(setq result (lspListBox '("メッセージ1" "メッセージ2" "メッセージ\t3") "リストボックス" '("aaa" "AA" "あああ" "ぁぁぁ" "1234567890")))
(alert (if (= nil result) ("キャンセル") result))
(setq result (lspListBoxMulti '("メッセージ1" "メッセージ2" "メッセージ\t3") "リストボックス" '("aaa" "AA" "あああ" "ぁぁぁ" "1234567890")))
(alert (if (= nil result) ("キャンセル") result))
(princ)
)
関連事項