How to create small buttons for ACT Extension

Josef Behal
Josef Behal Member Posts: 22
10 Comments Name Dropper
**
edited June 2023 in Structures

Hi

for a long time I'm wondering if it is possible to create small toolbar entries for my ACT extension. I'm able to create only big buttons (Supports), but not the small entries (Fixet, Frictionless, ....)

Does some way exist, how to do it?

Thanks

Answers

  • Chris Harrold
    Chris Harrold Member, Administrator, Employee Posts: 183
    100 Comments 5 Answers First Anniversary Ansys Employee
    admin

    Definitely a @Landon Mitchell Kanner or @Mike.Thompson question!

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 338
    25 Answers 100 Comments 25 Likes First Anniversary
    ✭✭✭✭

    I don't think we can do the small icons (not 100% sure)....

    We can do a drop down that has many option under a larger button to save space. This is in the .xml file. Below is an example of what would appear in the <Toolbar> node.

                <entry name="Selection" icon="body_select">
                    <entry name="Do some selection" icon="body_select"><callbacks><onclick>MyFunc1</onclick></callbacks></entry>
                    <separator/>
                    <entry name="Do some other selection" icon="body_select"><callbacks><onclick>MyFunc2</onclick></callbacks></entry>
                </entry>
    
  • Josef Behal
    Josef Behal Member Posts: 22
    10 Comments Name Dropper
    **

    Yes, I know about this option, but it isn't what I really looking for. Sometimes it is also good to show the standard .net framework context menu (which has even more possibilities) on onclick event.

    But thank you for your tips anyway.