CustomPanel - FlyOut

CustomPanel - FlyOut

Anonymous
Not applicable
346 Views
1 Reply
Message 1 of 2

CustomPanel - FlyOut

Anonymous
Not applicable

Hello,

I use the CommandControls.AddButtonPopup to have some buttons as a flyout. Now I think it does not work like the Autodesks one. I trie to explain it a litte bit:

By Autodesk -> for example IAM -> Place Component
- If you click to the Button the function to place a component is active
- If you click the arrow (e.g. place by vault) at the bottom the fly-out will expand

 

By API:
- If you want the first Flyout-Button you have to click to the first Button
- then the Menü is flying out
- then you can click the first Button

 

I thinks there sould be a better solution. So my question is: Is there any solution to have a flyout like the Autodesks ones?

 

Thanks a lot.
Christian

0 Likes
347 Views
1 Reply
Reply (1)
Message 2 of 2

DRoam
Mentor
Mentor

Hi @Anonymous, you need to use either the SplitButton or SplitButtonMRU control instead of the ButtonPopup control. Take a look at this page in the API documentation for the types of controls available: CommandControls Object.

 

If you want the first button under the flyout to always be the default button, use SplitButton. If you want the last clicked button to be the default button, use SplitButtonMRU (MRU stands for Most Recently Used).

0 Likes