Visual LISP, AutoLISP and General Customization

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

Get flyout value

122 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: 739
Registered: ‎09-14-2003
Message 2 of 4 (90 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: 636
Registered: ‎08-30-2005
Message 3 of 4 (80 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: 739
Registered: ‎09-14-2003
Message 4 of 4 (71 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.

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community