Results 1 to 4 of 4

Thread: Turning scroll bars ON/OFF via lisp

  1. #1
    100 Club
    Join Date
    2001-01
    Posts
    169

    Default Turning scroll bars ON/OFF via lisp

    Hi All

    Is there an easy way to turn scroll bars ON or OFF via lisp? I know that I can set it through the Options dialog but I would love to be able adjust them on the fly with a macro. I have looked for a system variable but I couldn't find one. Any help is greatly appreciated. Thanks.

    Manuel

  2. #2
    Moderator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    2,399

    Default Re: Turning scroll bars ON/OFF via lisp

    For fun:

    Code:
    (defun c:SB () (c:SCROLLBARS))
    (defun c:SCROLLBARS  (/ oDispPrefs)
      (vl-load-com)
      (princ "\rSCROLL BARS: ")
      (if (= :vlax-true
             (vla-get-displayscrollbars
               (setq oDispPrefs
                      (vla-get-display
                        (vla-get-preferences
                          (vlax-get-acad-object))))))
        (progn (vla-put-displayscrollbars oDispPrefs :vlax-false)
               (princ "OFF "))
        (progn (vla-put-displayscrollbars oDispPrefs :vlax-true)
               (princ "ON ")))
      (princ))
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    100 Club
    Join Date
    2001-01
    Posts
    169

    Default Re: Turning scroll bars ON/OFF via lisp

    Thank you very much RenderMan.

    Manuel

  4. #4
    Moderator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    2,399

    Default Re: Turning scroll bars ON/OFF via lisp

    Quote Originally Posted by cadconcepts View Post
    Thank you very much RenderMan.
    Happy to help, Manuel.
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. Scroll bars
    By nextvkin in forum Revit Architecture - General
    Replies: 6
    Last Post: 2010-11-30, 01:26 AM
  2. Wheel Mouse = Scroll Bars
    By WileECoyote in forum AutoCAD General
    Replies: 3
    Last Post: 2009-10-09, 02:28 PM
  3. Display Scroll bars within drawing area
    By msanders.85217 in forum AutoCAD General
    Replies: 4
    Last Post: 2006-02-07, 08:01 PM
  4. Missing Scroll Bars?
    By Wanderer in forum ACA General
    Replies: 6
    Last Post: 2005-05-06, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •