DisplayScreenMenu Property (ActiveX)

Specifies whether to display the screen menu on the right side of the drawing window. (Obsolete)

Supported platforms: Windows only

Signature

VBA:

object.DisplayScreenMenu
object

Type: PreferencesDisplay

The object this property applies to.

Property Value

Read-only: No

Type: Boolean

Remarks

The initial value for this property is False.

Examples

VBA:

Sub Example_DisplayScreenMenu()
    ' This example returns the current setting of
    ' DisplayScreenMenu. It then changes the value, and finally
    ' it resets the value back to the original setting.
    
    Dim preferences As AcadPreferences
    Dim currDisplayScreenMenu As Boolean
    
    Set preferences = ThisDrawing.Application.Preferences
    
    ' Retrieve the current DisplayScreenMenu value
    currDisplayScreenMenu = preferences.Display.DisplayScreenMenu
    MsgBox "The current value for DisplayScreenMenu is " & preferences.DISPLAY.DisplayScreenMenu, vbInformation, "DisplayScreenMenu Example"
    
    ' Change the value for DisplayScreenMenu
    preferences.DISPLAY.DisplayScreenMenu = Not (currDisplayScreenMenu)
    MsgBox "The new value for DisplayScreenMenu is " & preferences.DISPLAY.DisplayScreenMenu, vbInformation, "DisplayScreenMenu Example"
    
    ' Reset DisplayScreenMenu to its original value
    preferences.DISPLAY.DisplayScreenMenu = currDisplayScreenMenu
    MsgBox "The DisplayScreenMenu value is reset to " & preferences.DISPLAY.DisplayScreenMenu, vbInformation, "DisplayScreenMenu Example"
End Sub

Visual LISP:

(vl-load-com)
(defun c:Example_DisplayScreenMenu()
    ;; This example returns the current setting of
    ;; DisplayScreenMenu. It then changes the value, and finally
    ;; it resets the value back to the original setting.
    (setq acadObj (vlax-get-acad-object))
    (setq preferences (vla-get-Preferences acadObj))
        
    ;; Get the Display preferences object
    (setq ACADPref (vla-get-Display preferences))

    ;; Retrieve the current DisplayScreenMenu value
    (setq currDisplayScreenMenu (vla-get-DisplayScreenMenu ACADPref))
    (alert (strcat "The current value for DisplayScreenMenu is " (if (= currDisplayScreenMenu :vlax-true) "True" "False")))
    
    ;; Change the value for DisplayScreenMenu
    (setq newValue (if (= currDisplayScreenMenu :vlax-true) :vlax-false :vlax-true))
    (vla-put-DisplayScreenMenu ACADPref newValue)
    (alert (strcat "The new value for DisplayScreenMenu is " (if (= newValue :vlax-true) "True" "False")))
    
    ;; Reset DisplayScreenMenu to its original value
    (vla-put-DisplayScreenMenu ACADPref currDisplayScreenMenu)
    (alert (strcat "The DisplayScreenMenu value is reset to " (if (= currDisplayScreenMenu :vlax-true) "True" "False")))
)