Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Mentor
scottbolton
Posts: 638
Registered: ‎08-30-2005
Message 1 of 4 (127 Views)

Get flyout value

127 Views, 3 Replies
02-13-2013 04:29 AM

Chaps,

 

Anybody know how can I determine which button on a flyout toolbar is currently shown?

 

S

Distinguished Mentor
Moshe-A
Posts: 745
Registered: ‎09-14-2003
Message 2 of 4 (95 Views)

Re: Get flyout value

02-14-2013 09:17 AM in reply to: scottbolton

Scott,

 

Never needed to do this but it looks to me that you can query ToolBarItem object

and if it is a Flyout get its TagString and compaire it with ToolBar/ToolBarItems TagStrings

that is attached to that ToolBarItem

 

Moshe

 

 

 

Distinguished Mentor
scottbolton
Posts: 638
Registered: ‎08-30-2005
Message 3 of 4 (85 Views)

Re: Get flyout value

02-14-2013 10:58 AM in reply to: Moshe-A

Hi Moshe,

 

Using this code:

 

(vlax-dump-object
  (vla-item
    (vla-get-toolbars
      (vla-item
        (vla-get-menugroups
          (vlax-get-acad-object)
          )
        "ACAD"
        )
      )
    "Zoom"
    )
  )

 

gives the same results no matter what the Zoom flyout of Standard is set to.

 

Am I missing something?

 

S

Distinguished Mentor
Moshe-A
Posts: 745
Registered: ‎09-14-2003
Message 4 of 4 (76 Views)

Re: Get flyout value

02-14-2013 02:09 PM in reply to: scottbolton

It looks like you are right, they does not reveals the default selected button.

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.