時間制限付き右クリックの動作をコントロールします。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: ブール型
このプロパティは時間制限付き右クリックの動作を設定します。すばやいクリックは、[Enter]を押すことと同じです。クリック時間が長いと、ショートカット メニューが表示されます。このプロパティは、ShortcutMenuDisplay プロパティが True に設定されている場合にのみ設定できます。
SCMTimeValue プロパティを使用して右クリックの有効時間を設定できます。
VBA:
Sub Example_SCMTimeMode() ' This example reads and modifies the SCMTimeMode property. ' Then the property is reset to its original value. Dim ACADPref As AcadPreferencesUser Dim originalValue As Boolean, newValue As Boolean ' Get the UserPreferences object Set ACADPref = ThisDrawing.Application.Preferences.User originalValue = ACADPref.SCMTimeMode MsgBox "The SCMTimeMode property is currently: " & originalValue newValue = IIf(originalValue, False, True) ACADPref.SCMTimeMode = newValue MsgBox "The SCMTimeMode property has been set to: " & ACADPref.SCMTimeMode ' Reset the preference back to its original value ACADPref.SCMTimeMode = originalValue MsgBox "The SCMTimeMode property was reset back to: " & originalValue End Sub
Visual LISP:
(vl-load-com) (defun c:Example_SCMTimeMode() ;; This example reads and modifies the SCMTimeMode property. ;; Then the property is reset to its original value. (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; Read and display the original value (setq originalValue (vla-get-SCMTimeMode (vla-get-User preferences))) (alert (strcat "The SCMTimeMode property is currently: " (if (= originalValue :vlax-true) "True" "False"))) ;; Modify the SCMTimeMode preference by toggling the value (setq newValue (if (= originalValue :vlax-true) :vlax-false :vlax-true)) (vla-put-SCMTimeMode (vla-get-User preferences) newValue) (alert (strcat "The SCMTimeMode property has been set to: " (if (= newValue :vlax-true) "True" "False"))) ;; Reset the preference back to its original value (vla-put-SCMTimeMode (vla-get-User preferences) originalValue) (alert (strcat "The SCMTimeMode property was reset back to: " (if (= originalValue :vlax-true) "True" "False"))) )